module allsky_dewheater expansion with the “sensor” to include Solo Cloudwachter #38
Replies: 4 comments
-
Thats really nice :-) We are currently freezing development until we release the Point-Release-4 which is planned for this Fri/Sat. As soon as that is released I will get this merged into the code Thanks for the contribution :-) Alex |
Beta Was this translation helpful? Give feedback.
-
ohha, in the script "allsky_dewheater.py" in the ZIP file above, there is a small error in the call to "readSolo" in the function "getSensorReading" instead of
it has to look like this (a comma after "dewPoint" is too many)
I changed it in the ZIP file above |
Beta Was this translation helpful? Give feedback.
-
Closing this as dealing with it as an issue See #39 |
Beta Was this translation helpful? Give feedback.
-
Suggestion: You could add a “sensor” that, like the Solo, gets the weather data from a surrounding weather station with an API key from weather.com. Here is a documentary about it. This is how I get the wind direction because the SOLO doesn't have that (yet). I could add this to the SOLO code in the next few days if desired. This means that users of the Allsky software can use environmental data without physically installing a sensor |
Beta Was this translation helpful? Give feedback.
-
I have expanded the
allsky_dewheater
module to include a “sensor”. The new "sensor" reads the weather data from the weather station "Solo Cloudwatcher" from the company "Lunatico Astronomia" (lunaticoastro.com) via HTTP.Runs on an Rpi5 with Bookwoorm.
new libraries
import gpiod
,import urllib.request
andimport json
are needed (they were already installed on mine)new function
def readSolo(url)
, Changes inmetaData
,getSensorReading
anddewheater
Here is the data provided by the “Solo Cloudwatcher”:
{ "LastReadings": { "dataGMTTime" : "2023/12/18 18:22:07", "cwinfo" : "Serial: 2550, FW: 5.89", "clouds" : -18.130000, "cloudsSafe" : "Safe", "temp" : 7.820000, "wind" : 7, "windSafe" : "Safe", "gust" : 8, "rain" : 3100, "rainSafe" : "Safe", "lightmpsas" : 19.82, "lightSafe" : "Safe", "switch" : 1, "safe" : 1, "hum" : 40, "humSafe" : "Safe", "dewp" : -4.940000, "rawir" : -22.680000, "abspress" : 998.450000, "relpress" : 1027.527780, "pressureSafe" : "Safe" } }
Here in the zip file is also another module "allsky_solo_cloudwatcher" which writes all the data listed above from the "Solo-Cloudwatcher" to
/home/pi/allsky/tmp/allskydb.py
for possible use in other modulesallsky_dewheater.zip
CS
Beta Was this translation helpful? Give feedback.
All reactions