[weewx-user] Can't purge remove, forced reinstall fails

2023-10-04 Thread Benedict
This is on a plain debian 12;

root@server~# apt purge weewx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages will be REMOVED:
  weewx*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 6148 kB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 126755 files and directories currently installed.)
Removing weewx (4.10.2-1) ...
Failed to stop weewx.service: Unit weewx.service not loaded.
invoke-rc.d: initscript weewx, action "stop" failed.
dpkg: error processing package weewx (--remove):
 installed weewx package pre-removal script subprocess returned error exit 
status 5
dpkg: too many errors, stopping
Errors were encountered while processing:
 weewx
Processing was halted because there were too many errors.
E: Sub-process /usr/bin/dpkg returned an error code (1)

and then if I try:

root@server~# apt install weewx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
weewx is already the newest version (4.10.2-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up weewx (4.10.2-1) ...
using debconf configuration values from previous install
Failed to start weewx.service: Unit weewx.service not found.
invoke-rc.d: initscript weewx, action "start" failed.
Unit weewx.service could not be found.
dpkg: error processing package weewx (--configure):
 installed weewx package post-installation script subprocess returned error 
exit status 5
Errors were encountered while processing:
 weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@server~# apt --reinstall install weewx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not 
upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for weewx:amd64

Looks like something is amiss here.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/0275acc1-401f-4e0a-9fc1-36233c2d434cn%40googlegroups.com.


[weewx-user] Re: New Tempest owner, how to show Lightning output in weewx ?

2021-08-27 Thread Benedict
The wf.txt is generated by the weather34 skin/extension, and apparently 
*that* uses "brightness" instead of "illuminance", but that seems to just 
be their preference for the obs_st value output though the online api.

On Friday, August 27, 2021 at 8:02:56 PM UTC+2 vince wrote:

> On Friday, August 27, 2021 at 5:57:06 AM UTC-7 pa...@luxthijssen.nl wrote:
>
>> If the "illuminance" value is actually called "brightness", this explains 
>> why I only got errors from it thus far. Means the weatherflowudp.py 
>> driver-file is incorrect.
>> I'll have to check what the tempest transmits on the LAN locally to be 
>> sure.
>> Is there someone that has already done that work for us?
>>
>>
> I'd suggest the driver is probably ok.
>
> A quick look at the WeatherFlow REST API  (link) 
> ,
>  
> UDP API (link)  seem 
> consistent and they do not use the term 'brightness' so I'm guessing that 
> whatever code you are using to generate your .txt file is likely at fault 
> in this case.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a7d7155d-51a9-4776-a239-025f82b18185n%40googlegroups.com.


[weewx-user] Re: New Tempest owner, how to show Lightning output in weewx ?

2021-08-25 Thread Benedict
Just an FYI for you all looking for Lightning output from WeatherFlow as 
it's shown on the tempestwx site. I checked both https://pwsdashboard.com/ 
and https://github.com/steepleian/weewx-Weather34/
and from there succeeded in creating a 'live' jsondata/wf.txt file (using 
API Data token from the tempestwx site), and its content looks like this;

{"station_id":X,"station_name":"XX","public_name":"XXX","latitude":XXX,"longitude":XXX,"timezone":"Europe/","elevation":18,"is_public":true,"status":{"status_code":0,"status_message":"SUCCESS"},"station_units":{"units_temp":"c","units_wind":"kph","units_precip":"mm","units_pressure":"hpa","units_distance":"km","units_direction":"cardinal","units_other":"metric"},"outdoor_keys":["timestamp","air_temperature","barometric_pressure","station_pressure","pressure_trend","sea_level_pressure","relative_humidity","precip","precip_accum_last_1hr","precip_accum_local_day","precip_accum_local_yesterday","precip_minutes_local_day","precip_minutes_local_yesterday","wind_avg","wind_direction","wind_gust","wind_lull","solar_radiation","uv","brightness","lightning_strike_last_epoch","lightning_strike_last_distance","lightning_strike_count","lightning_strike_count_last_1hr","lightning_strike_count_last_3hr","feels_like","heat_index","wind_chill","dew_point","wet_bulb_temperature","delta_t","air_density"],"obs":[{"timestamp":1629929484,"air_temperature":15.7,"barometric_pressure":1017.1,"station_pressure":1017.1,"sea_level_pressure":1018.0,"relative_humidity":95,"precip":0.0,"precip_accum_last_1hr":0.0,"precip_accum_local_day":0.0,"precip_accum_local_yesterday":0.0,"precip_minutes_local_day":0,"precip_minutes_local_yesterday":0,"wind_avg":2.7,"wind_direction":335,"wind_gust":4.0,"wind_lull":0.9,"solar_radiation":0,"uv":0.0,"brightness":0,"lightning_strike_last_epoch":1629633834,"lightning_strike_last_distance":41,"lightning_strike_count":0,"lightning_strike_count_last_1hr":0,"lightning_strike_count_last_3hr":0,"feels_like":15.7,"heat_index":15.7,"wind_chill":15.7,"dew_point":14.9,"wet_bulb_temperature":15.2,"delta_t":0.5,"air_density":1.22665,"pressure_trend":"falling"}]}

Now all we need to do is have WeeWX grab its lightning data from this 
wf.txt file, which then will be identical to what you'd see in the tempest 
app/site.

Anyone here that has done this before that could show us the way?
On Tuesday, August 17, 2021 at 6:04:46 PM UTC+2 vince wrote:

> Please post your weewx.conf sensor map section so we can take a look at 
> what you have.
>
> Also, what driver are you using ?  There are at least two out there for 
> WeatherFlow that I'm aware of.
>
> On Tuesday, August 17, 2021 at 5:29:27 AM UTC-7 pa...@luxthijssen.nl 
> wrote:
>
>> Actually no, I had done extensive searching beforehand, but none of the 
>> "many threads" show any actual progress in this area. And furthermore, none 
>> show an example working weewx.conf for the tempest. The only example one 
>> can find out there is the one I have in use, and as I stated in my 
>> question: It disregards a bunch of values the tempest hub broadcasts over 
>> UDP.
>>
>> On Monday, August 16, 2021 at 7:47:52 PM UTC+2 vince wrote:
>>
>>> There are many threads here and in the WeatherFlow forums for how to do 
>>> this.  Please do a little searching there.
>>>
>>> WF has never published any units for energy that I've ever seen in their 
>>> API documentation for UDP (link) 
>>>  and their example 
>>> REST query doesn't even report an energy value for lightning.
>>>
>>> On Monday, August 16, 2021 at 3:43:30 AM UTC-7 pa...@luxthijssen.nl 
>>> wrote:
>>>
 Have weewx running showing most data from the tempest, except for
 - Illuminance/Brightness (in lux, which I would like to include as a 
 plaintext and graph, just like UV)

 - Lightning, for which it seems they do it as follows in the UDP load 
 (example nrs):

 Lightning Strike Event [type = evt_strike]
 { "serial_number": "AR-4049",
 type":"evt_strike",
 "hub_sn": "HB-0001",
 "evt":[1493322445,27,3848] } 

 Index Field Units
 0 | Time Epoch | Seconds
 1 | Distance | km
 2 | Energy |

 What is the Energy unit here? Anyone from Weatherflow who can chime in ?

 And, most importantly, anyone has these values properly showing in 
 weewx yet?
 If so, what does it look like in your weewx.conf ? Could anyone be so 
 kind as to copy paste their weewx.conf sensor data, without the hub and 
 station nrs if needed).

 https://weatherflow.github.io/Tempest/api/udp/v170/

 Thanks in advance for any and all help here.

>>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

[weewx-user] Re: BaraniDesign MeteoHelix MeteoWind MeteoRain through allMETEO

2021-08-15 Thread Benedict
Nope. The parsing of ftp-data is very hard, because barani uploads either 
in 1 file subsequently all output, per device, or renews each uploaded file 
per device per output burst. It's very complex and causes delays/skips 
output you would not want to see happen, and a lot of bonus dependencies. 
It would be better if they would support something like weewx directly 
through LoraWAN or a driver, or some standalone linux CLI app that 
communicates directly with the LoRaWAN router.
I really have no idea why barani has chosen to do stuff so different from 
the others. It makes their measurements pretty close to useless, 'closed 
source output', which is all but what we want in the meteo world. A shame, 
since their sensors are very accurate. I'm afraid the brand will go 
bankrupt because of this. There's way too much competition that has IoT 
compatibilities and more ease of use.

On Saturday, February 20, 2021 at 9:39:17 PM UTC+1 Toby wrote:

> Hello Bendict,
> I also has a MeteoHelix Pro.. Do you have any solution to collect your 
> values and see on weewx?
>
> Regards, Toby.
>
> Benedict schrieb am Donnerstag, 26. November 2020 um 16:56:24 UTC+1:
>
>> Oh, before I forget, they have an Open standards structure, so even for 
>> developers it should not be too hard to parse its device data;
>> https://www.baranidesign.com/meteohelix-message-decoder
>> On Thursday, November 26, 2020 at 4:25:18 PM UTC+1 Benedict wrote:
>>
>>> Not sure if this should be in the dev or in user group. Depends, I 
>>> guess..
>>> I have my own debian server running weewx (currently parsing netatmo 
>>> data) and I want it to collect and show data from my barani Pro IoT 
>>> devices, which are not in the supported hardware list, and frankly I have 
>>> no idea if there are brands that use similar protocols/output, and use the 
>>> same sensor descriptors.
>>>
>>> My barani devices upload data through LoRaWAN via TheThingsNetwork to a 
>>> site called allMETEO.com. Here's a couple screenshots so you can see; 
>>> https://afluisterland.nl/img/barani/
>>> So, as you can see at the allmeteo site I can forward using FTP or HTTP, 
>>> in a txt file to a ftp server for example, would that be an option? Can 
>>> weewx monitor more than one file or an entire folder for new content and 
>>> then parse its values?
>>>
>>> Another option would be to interface directly through TTN, is there any 
>>> of you users that uses TheThingsNetwork to get data visualized on a weewx 
>>> site?
>>>
>>> Thanks in advance for any and all info,
>>>
>>> Ben
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4662566e-32bf-4752-9a5e-974a950bc5ebn%40googlegroups.com.


[weewx-user] Re: BaraniDesign MeteoHelix MeteoWind MeteoRain through allMETEO

2020-11-26 Thread Benedict
Oh, before I forget, they have an Open standards structure, so even for 
developers it should not be too hard to parse its device data;
https://www.baranidesign.com/meteohelix-message-decoder
On Thursday, November 26, 2020 at 4:25:18 PM UTC+1 Benedict wrote:

> Not sure if this should be in the dev or in user group. Depends, I guess..
> I have my own debian server running weewx (currently parsing netatmo data) 
> and I want it to collect and show data from my barani Pro IoT devices, 
> which are not in the supported hardware list, and frankly I have no idea if 
> there are brands that use similar protocols/output, and use the same sensor 
> descriptors.
>
> My barani devices upload data through LoRaWAN via TheThingsNetwork to a 
> site called allMETEO.com. Here's a couple screenshots so you can see; 
> https://afluisterland.nl/img/barani/
> So, as you can see at the allmeteo site I can forward using FTP or HTTP, 
> in a txt file to a ftp server for example, would that be an option? Can 
> weewx monitor more than one file or an entire folder for new content and 
> then parse its values?
>
> Another option would be to interface directly through TTN, is there any of 
> you users that uses TheThingsNetwork to get data visualized on a weewx site?
>
> Thanks in advance for any and all info,
>
> Ben
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ac2fb96b-e6d8-4ab8-8cdc-70611fee9863n%40googlegroups.com.


[weewx-user] BaraniDesign MeteoHelix MeteoWind MeteoRain through allMETEO

2020-11-26 Thread Benedict
Not sure if this should be in the dev or in user group. Depends, I guess..
I have my own debian server running weewx (currently parsing netatmo data) 
and I want it to collect and show data from my barani Pro IoT devices, 
which are not in the supported hardware list, and frankly I have no idea if 
there are brands that use similar protocols/output, and use the same sensor 
descriptors.

My barani devices upload data through LoRaWAN via TheThingsNetwork to a 
site called allMETEO.com. Here's a couple screenshots so you can see; 
https://afluisterland.nl/img/barani/
So, as you can see at the allmeteo site I can forward using FTP or HTTP, in 
a txt file to a ftp server for example, would that be an option? Can weewx 
monitor more than one file or an entire folder for new content and then 
parse its values?

Another option would be to interface directly through TTN, is there any of 
you users that uses TheThingsNetwork to get data visualized on a weewx site?

Thanks in advance for any and all info,

Ben

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a878cee6-c294-427c-8d29-e1089dbd9ec5n%40googlegroups.com.