pbecchi / SmartSol_Firmware

Firmware for SmartSolenoid
1 stars 0 forks source link

New code to upload data to cloud for watering control , adjustement and notifications #1

Open pbecchi opened 5 years ago

pbecchi commented 5 years ago

Functionality of SmartSolenoid receivers used to control valves, pumps and to aquire sensor data are recorded to a Cloud Server to allow users surveillance and IFTTT notifications.

The could server selected is Thingspeak. A Lora contentrator unit based on a Esp32 Lora board will collect data from the remote units and send it to the Server via WiFi. We forseen an high frequency upload every minute to record following data:

We also forseen a low frequency upload (1/2hour or multiple) for all other sensors(temperature, humidity, battery statu and RSSI of various receivers, reservoir level......) All sensor data are aquired by remote Lora units with a dedicated aquisition code , sent to concentrator unit and uploaded to cloud and or locally used to control valve controller.

pbecchi commented 5 years ago

First field store on cloud contain a 64 bit value , for a 64 control zone system. When a valve is open or a pump is running corresponding bit will be set to 1. Whe a valve is closed or pump stopped bit will be set to 0.

raouland commented 5 years ago

is it possible to write the external IP address as well so that if on a dynamic address and the internet goes down, we have a way of finding the new IP address when it resumes service? We have tried various dynamic DNS services with limited success, so keen to see if this might be a way to acheive a similar result?

pbecchi commented 5 years ago

Have to split the coding work in different parts:

  1. Add sensor reading to remote lora stations SmartSolenoidEsp32

  2. Transmit sensor readings to wifi connected Esp32 Lorasender via Lora.

  3. Add to Lorasender local and cloud logging capabilities

  4. Add to lorasender capabilities to get data from websites and locally control OpenSprinkler units.

pbecchi commented 5 years ago

I will prepare a masterplan of the code development ....workload is relevant...expect more than 2 month development!