Jump to content



  • Content Count

  • Joined

  • Last visited

Community Reputation

1,129 Excellent

1 Follower

About tekkydave

  • Rank
    Sub Dwarf

Profile Information

  • Gender
  • Location
    West Yorkshire, UK

Recent Profile Visitors

3,855 profile views
  1. Might be worth putting that on the Duet forum. It's not one I have seen before. What version of DWC do you have. The latest stable version is 3.1.1 with 3.2 out soon. If you are still on 2.x it might be worth considering the upgrade to v3.
  2. The class I posted is part of the aggregation functions in my system. I have a separate logger that just puts raw values into the db with minimal processing for speed. The aggregation functions read from the db and write back things like wind speed & direction concensus that depend on values over a set period. Also I have hourly, daily, monthly, yearly aggregation of temperature, rainfall and wind speed going on in the background. My database is at 1.5Gb already with data going back to 2016. Daily backups happen automatically
  3. I put everything in the same class as it writes them to the database as a single row. You are probably only interested in the direction bits.
  4. If you read Java this is my class package piweather4jv2; import java.util.ArrayList; import java.util.Date; import java.util.Iterator; import java.util.List; // Class constructed using instructions at: http://www.beals5.com/wx/faqs.htm public class WindConcensus { public void readWindConcensus(Database db, int dbSensorId, FileManager fm) { List<Double> windDirectionResults; List<Double> windSpeedResults; List<Double> windGustResults; double windSpeed = 0; double windGust = 0; int[] bin = new int[20]; bool
  5. I used the algorithm on this web site for my calculations.
  6. Check you have USB enabled in the VMs settings: and also when you connect a USB device to the host PC select it from the Devices --> USB menu so the VM can capture it from the host.
  7. Isn't the browser fetching data from the esp32? You need to do the same. Try curl maybe.
  8. The very first 1-wire wind-vane I had contained 8 reed switches. It selectively shorted out resistors in a chain to give a 4-bit analogue reading. This was read by a 4-bit 1-wire AtoD chip and the software then used the values to calculate 1 of 16 compass directions. I'll see if I can find the original circuit. Edit: found it! This is pdf so d/l then open up CalculatingWindSpeedAndDirection.PDF
  9. Could a pi be set up to poll the ESPs in turn to get the latest/current values?
  10. Have you considered storing your readings in a database. Then you can split the system into 2 parts; 1. A part based on the ESP32 that simply takes readings & logs raw data to the database 2. A front-end based on a pi or pc that displays the data. This can be more powerful for the processing required. Having the data in a db also allows you to keep a history of your readings. I now have readings going back to 2016 in my weather db.
  11. Do you mean web server or web service? Running a web service on the ESP32 would be a good solution as it can be accessed over the wifi from any other networked device easily. Almost like a one-way MQTT
  12. I think MQTT is definitely worth considering. All you need is a server/broker (RPi?) which is easy to set up. Then you can send messages (data etc) between clients easily. The ESP32 should have an MQTT library and there will be one for whatever language you go with on the indoor side. There are also free sites on the web that you can use as your broker - see CloudMQTT. I have used it just for testing so you can play with the client ends without needing to build the broker. So it might look like this: (WiFi) (WiFi/Eth) Weather Station <----
  13. Buck converters are ideal for this. Make sure each one has sufficient current rating and put a fuse on each individual output too
  14. Programming ESP32 via Arduino IDE Note: Also works using Arduino IDE in Linux
  15. ESP8266 only has one analogue input - you need the ESP32 I think The ESP chips can be programmed via the Arduino IDE as if they were arduinos with the addition of a few extensions.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. By using this site, you agree to our Terms of Use.