impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jul 2, 2019 20:24:33 GMT -8
In the manual about interfacing to Weather Underground it says it will do an update every 5 minutes (Page 6).
Mine is updating at least every 30 seconds....
My station is at a remote location, where internet is expensive, and I am trying to cut down the usage to a minimum - where would I find the time settings to change the cycle so that I can change this back to 5 minutes between updates ?
|
|
|
Post by SDL on Jul 3, 2019 6:04:07 GMT -8
Two ways to change this. Either:
SkyWeather.py: Line 1660
scheduler.add_job(sampleAndDisplay, 'interval', seconds=30) Change 30 seconds to what interval you want. This changes all the sampling of weather variables including weatherunderground
or
Add some kind of a counter (say something that will only fire every 10 times) to the code around:
SkyWeather.py: Line 1035
BP
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jul 3, 2019 15:05:24 GMT -8
Easily fixed, already saw that, and did not want to just make the change, without checking... Thought as the doco mentioned 5 minutes there might be something else needing to be done.
So I am just setting up another item in the config file for this, and setting it up the way I need it.
Might make note - that maybe you either include this in the doco, or remove the 5 minutes reference, so the next person who reads documents (I know I should stop) and compare with what is happening is not confused as well...
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jul 3, 2019 21:33:36 GMT -8
Also noticed no functionality for uploading the image taken with the PI Camera - I have wrote my own to only then discover that wunderground is having FTP issues.... argghhh…
Next to fix is the Solar Radiation and UV values which are not being sent to Wunderground - after much searching I finally found the paramaters;
solarradiation - [W/m^2] UV - [index]
So now to look at the software and what the sensors are supplying - whether they are the same units....
I know Wunderground has lost a lot of following since dropping their API - but its also showing that a lot more effort has gone into WeatherSTEM and not fixing issues with Wunderground… I only want to use Wunderground until I have the time to get this all working with Weewx.com which I believe has such a strong backing and great dashboards...
One step at a time...
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jul 4, 2019 1:36:55 GMT -8
Is there a reason why that the software only does the calculations for UV etc if your using a TSL2591 but does not do the calculations if your using a SI1145. While the software will detect either, and read values from both - my examination of the code appears that only the global variables are set for the TSL2591 - and not if your using an SI1145. Hence if your using the SI its not inserting values into the database, or available in the code for WeatherUnderground.py. Yes I know your feelings against the SI - but it is a sunlight sensor - and thought it was supported...
Oh well - fix the code or replace the sensor... It will take me 4 days to obtain a sensor (all mail order / no shop I can walk into get one)…. Argghhh I just wanted a simple solution - but its taking days of effort to get this all working
|
|
|
Post by SDL on Jul 4, 2019 7:06:24 GMT -8
The SI1145 has reliability issues on the Raspberry Pi. Something about the I2C interface causes it to stop reporting eventually. John worked on it for a couple of days, but couldn't get a model to make it work correctly on the PI at 100%. Works fine on Arduino and older Raspberry Pis. At that point we made a decision to switch to the much more reliable TSL2591 for SkyWeather. We support the SI1145 as a legacy for GWP units.
BP
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jul 15, 2019 23:13:46 GMT -8
Yes I am still confused here - so I have taken your advice and swapped out the SI for a TSL... I notice the code for TSL sets UV to 0 and does not read it, yet the SI does read and calculate it... Does this mean we can no longer obtain UV information...
Some google searches are suggesting the calculation of Lux for the TSL is completely inaccurate - there is no mention of being able to read UV on this sensor and the only ones that use UV are Si1145 / ML8511 / GUVA-S12SD
There is an error in the code for weatherunderground.py - does not cause an error or anything.. .but sometime ago a typo creeped in...
the line myURL += "&indoorhumidity%0.2f=" % HTUhumidity needs to change myURL += "&indoorhumidity=%0.2f" % HTUhumidity
Not picked up because this field is not really visible...
Anyway I would hav thought UV would be more interesting than IR for a weather station....
|
|
|
Post by SDL on Jul 16, 2019 8:01:34 GMT -8
UV is more interesting. We are looking for a good UV sensor that will be added to the base kit. The SI1145 is unreliable on a busy Raspberry Pi setup. We fought it for a couple of months and then moved over to the TSL. Suggestions for good UV sensors (but inexpensive) would be appreciated!
BP
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jul 16, 2019 16:19:51 GMT -8
Im interested in the veml6075 - its only a UV Sensor - but from the reading of it - its the most accurate as it senses UVA and UVB separately... and will return UVI UVA UVB values for you... I2c chip based... cheap... some models already have grove connectors... but stay away from VEML6070 or earlier apparently...
I have ordered one to play with....
|
|
|
Post by SDL on Jul 16, 2019 18:48:29 GMT -8
I've ordered one too. This looks like a good solution.
John
|
|
impactoz
Full Member
Posts: 142
Raspberry Pi: Yes
|
Post by impactoz on Jul 21, 2019 23:19:03 GMT -8
Well I have my VEML sensor working and integrated into SkyWeather…. Now to watch what happens...
I think the original point is that despite you are offering the software to update STEM and WU, The code would never update WU with IR information as its not passed across. No matter which sensor is being used or supported the following code would need to change...
In WeatherUnderground.py - it needs the additional paramaters; So the def now becomes; def sendWeatherUndergroundData( as3935LightningCount, as3935, as3935LastInterrupt, as3935LastDistance, as3935LastStatus, currentWindSpeed, currentWindGust, totalRain, bmp180Temperature, bmp180Pressure, bmp180Altitude, bmp180SeaLevel, outsideTemperature, outsideHumidity, crc_check, currentWindDirection, currentWindDirectionVoltage, HTUtemperature, HTUhumidity, rain60Minutes, SunlightUVIndex):
Which will allow the SunlightUVIndex - by whichever sensor is being used (as I have my VEML update this field for consistency)
And the makeup of the URL requires this new field to be added so it can be sent;
myURL += "&indoorhumidity=%0.2f" % HTUhumidity myURL += "&UV=%0.1f" % SunlightUVIndex
myURL += "&software=SkyWeather"
The SkyWeather.py software needs one modification to send the value of the UVIndex to WeatherUNderground.py
WeatherUnderground.sendWeatherUndergroundData( as3935LightningCount, as3935, as3935LastInterrupt, as3935LastDistance, as3935LastStatus, currentWindSpeed, currentWindGust, totalRain, bmp180Temperature, bmp180SeaLevel, bmp180Altitude, bmp180SeaLevel, outsideTemperature, outsideHumidity, crc_check, currentWindDirection, currentWindDirectionVoltage, HTUtemperature, HTUhumidity, rain60Minutes, SunlightUVIndex)
So that then sends similar information as to what is sent to STEM - and I think it just completes the package a little more - for such a small change....
(For me on the VEML - I am using SunlightUVIndex = round((uv_indices[2] * 10),1) to give me the score of 0 thru to 10+ I m still working out what the other values should be - as WU accepts solarradiation - [W/m^2] - and again this would need to be passed to the routine as per above too!)
|
|
|
Post by SDL on Jul 23, 2019 6:32:46 GMT -8
Great information. I have my VEML sensors now but won't be able to work on them for about a week. John is out of the office which means I have to do his job too. Bad John.
BP
|
|
kiwa
New Member
Posts: 5
|
Post by kiwa on Dec 21, 2019 1:03:32 GMT -8
Any feedback on the VEML sensor? Orderd and received an SI1145 only to read find it is pretty shot.. My TSL2591had a failure due to my poor waterproofing unfortunately. Would prefer a sensor that does UV for my own curiosity/tell the kids to wear their Sunscreen/hats etc!
|
|
|
Post by SDL on Dec 23, 2019 11:39:43 GMT -8
It's on my list for this week. Friday is planned.
BP
|
|
kiwa
New Member
Posts: 5
|
Post by kiwa on Jan 30, 2020 23:21:21 GMT -8
Anyone else having problem with weatherunderground after the maintenance, 27-29/01/2020? is now offline, restarted skyweather/PI still offline.. nohup log just saying ( direct from log ..) myURL= ID=IPAEKA1&PASSWORD=xxxxxxxxx&dateutc=now&winddir=270&windspeedmph=2.80&windgustmph=17.24&humidity=78&tempf=63.61&dewptf=55.92&rainin=0.00&dailyrainin=0.16&baromin=29.99&indoortempf=66.47&indoorhumidity59.32=&software=SkyWeather --WeatherUnderground Data Send Failed
|
|