RE: [weewx-user] Help with HighCharts Error

2021-05-14 Thread purchase
The error starts as soon as I add the graphs.conf. If I don’t have graphs.conf 
loading, I don’t have any errors.

 

From: weewx-user@googlegroups.com  On Behalf Of 
Mitchell Tuckness
Sent: Friday, May 14, 2021 5:11 AM
To: weewx-user 
Subject: [weewx-user] Help with HighCharts Error

 

Hi all! I am having an issue with Weewx & the Belchertown skin. A short history 
of what I have tried doing. I was running my station on a Raspberry Pi 4 and 
everything was good, until the PI started finding errors on the SD card, well 
apparently it was. So it was flagging the OS as Read Only. I tried a plethora 
of things to resolve it and finally, I got an old laptop out and installed 
Ubuntu on it. 

 

I then installed Weewx, the drivers for the GW1000 and a few services like 
OpenWeather, MQTT and others.

 

Once I got all the stuff I used previously, I copied the configuration file 
(weewx.conf) from the PI over to the new system to save time reconfiguring it 
with all the service logins and that. Then I went to add some additional 
Graphs, but they are not showing up. 

 

I am still learning Linux, so my troubleshooting skills are pretty limited; so 
I am reaching out to you all to get some help to figure this issue out. Here is 
the error I see in Syslog.

 

ay 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.reportengine: Found 
configuration file /home/weewx/skins/Belchertown/skin.conf for report 
'Belchertown'

May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.cheetahgenerator: Using search 
list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Station', 
'weewx.cheetahgenerator.Current', 'weewx.cheetahgenerator.Stats', 
'weewx.cheetahgenerator.UnitInfo', 'weewx.cheetahgenerator.Extras', 
'weewx.cheetahgenerator.JSONHelpers', 'user.belchertown.getData']

May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.manager: Daily summary version 
is 4.0

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught 
unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
Parse error in value at line 146.

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
Traceback (most recent call last):

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/reportengine.py", line 196, in run

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
obj.start()

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/reportengine.py", line 281, in start

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
self.run()

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/cheetahgenerator.py", line 152, in run

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
ngen = self.generate(gen_dict[section_name], self.gen_ts)

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/cheetahgenerator.py", line 222, in generate

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
ngen += self.generate(section[subsection], gen_ts)

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/cheetahgenerator.py", line 222, in generate

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
ngen += self.generate(section[subsection], gen_ts)

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/cheetahgenerator.py", line 310, in generate

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
searchList = self._getSearchList(encoding, timespan,

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: 
File "/home/weewx/bin/weewx/cheetahgenerator.py", line 387, in _getSearchList

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
searchList += obj.get_extension_list(timespan, db_lookup)

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: 
File "/home/weewx/bin/user/belchertown.py", line 307, in get_extension_list

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
chart_dict = configobj.ConfigObj(chart_config_path, file_error=True)

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: 
File "/usr/lib/python3/dist-packages/configobj.py", line 1229, in __init__

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
self._load(infile, configspec)

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: 
File "/usr/lib/python3/dist-packages/configobj.py", line 1318, in _load

May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
raise error

May 14 

Re: [weewx-user] Re: Help with HighCharts Error

2021-05-14 Thread Mitchell Tuckness
That line is empty. I think I got some headway on it. I rebuilt the
graphs.conf file and so far, it looks like the error is gone. So I think my
issue probably lies in that file. The odd thing is, I entered everything in
I had on the one I copied over, but it works and the one I copied over
doesn't. It must not like a space or something I can't see visually. I'll
know more when I get home to work on it.


_
- Mitchell Tuckness


On Fri, May 14, 2021 at 10:12 AM vince  wrote:

> On Friday, May 14, 2021 at 4:11:08 AM UTC-7 Mitchell Tuckness wrote:
>
>> I am still learning Linux, so my troubleshooting skills are pretty
>> limited; so I am reaching out to you all to get some help to figure this
>> issue out. Here is the error I see in Syslog.
>>
>> ay 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.reportengine: Found
>> configuration file /home/weewx/skins/Belchertown/skin.conf for report
>> 'Belchertown'
>> May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.cheetahgenerator: Using
>> search list ['weewx.cheetahgenerator.Almanac',
>> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current',
>> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo',
>> 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers',
>> 'user.belchertown.getData']
>> May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.manager: Daily summary
>> version is 4.0
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught
>> unrecoverable exception in generator
>> 'weewx.cheetahgenerator.CheetahGenerator'
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    Parse error in value at line 146.
>>
> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    configobj.ParseError: Parse error in value at line 146.
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    Generator terminated
>> May 14 04:45:46 weewx-pi weewx[814] INFO weewx.reportengine: Copied 2
>> files to /var/www/maladomini.net/
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught
>> unrecoverable exception in generator
>> 'user.belchertown.HighchartsJsonGenerator'
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    Parse error in value at line 146.
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    configobj.ParseError: Parse error in value at line 146.
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    Generator terminated
>>
>>
> I'd guess you have a typo at line 146 in weewx.conf since two different
> skins are throwing the same error.
>
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/mwIWm1G3tDw/unsubscribe.
> To unsubscribe from this group and all its topics, 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/ec8b931b-0166-4151-8771-4ad40caed308n%40googlegroups.com
> 
> .
>

-- 
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/CAMcQ-hsK94hxG_Twy2zfxM%3DkFa0e0SOPDFnHS0gUp7rw7Jzoug%40mail.gmail.com.


[weewx-user] Re: adding graphs to Belchertown skin?

2021-05-14 Thread vince
And actually try to read the documentation we've already pointed you to.

https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation
 
- look above the section "File Structure" and read the last sentence.

On Friday, May 14, 2021 at 3:45:19 PM UTC-7 vince wrote:

> On Friday, May 14, 2021 at 2:02:27 PM UTC-7 eric.k...@gmail.com wrote:
>
>> Does the content in the graphs.conf.example deliver you the stock webpage 
>> content that you see with no graphs.conf file in place?
>> I am guessing, yes?
>>
>>
> I know this is a crazy thought, but how about you 'try' it and see
>
>  
>

-- 
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/0e75ea99-2238-406c-b955-f1e16ebe873fn%40googlegroups.com.


[weewx-user] Re: adding graphs to Belchertown skin?

2021-05-14 Thread vince
On Friday, May 14, 2021 at 2:02:27 PM UTC-7 eric.k...@gmail.com wrote:

> Does the content in the graphs.conf.example deliver you the stock webpage 
> content that you see with no graphs.conf file in place?
> I am guessing, yes?
>
>
I know this is a crazy thought, but how about you 'try' it and see

 

-- 
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/87fa0d44-8e4e-4b53-a677-38aaa1c9f74fn%40googlegroups.com.


[weewx-user] Volunteer translators needed!

2021-05-14 Thread Tom Keffer
This is something that almost anyone who knows a language besides English
can do. No technical skills are necessary!

Thanks to user Karen, a key feature of the up-and-coming V4.6 is easy
localization of the skins that come with WeeWX. Right now, they have all
been localized to English, but only one (*Seasons*) to other languages
(German and Thai). I'd like to see more translations before the release.

For the moment, let's focus on the *Seasons* skin, because that's what most
people use. Attached is the English localization file for *Seasons*. All
you have to do is go through the file line by line, translating the right
hand side to your native language. For example, if you wanted to localize
to the French language, you would change this

"Current Conditions" = Current Conditions
"Current Weather Conditions"  = Current Weather Conditions
"Day" = Day
"from" = "from" # Direction context. The wind is "from" the NE
"Maximum Temperature" = Maximum Temperature
...

to this

"Current Conditions" = Conditions Actuelles
"Current Weather Conditions"  = Conditions Météorologiques Actuelles
"Day" = Jour
"from" = de # Direction context. The wind is "from" the NE
"Maximum Temperature" = Température maximale
...

And so on. Easy!

Alternatively, if your GitHub-fu is up to it, you can send me a PR with a
new localization file in the target language.

Please: native or fluent speakers only! We don't need Google translations!

Thanks.

-tk

-- 
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/CAPq0zEAsL%3D%3DyRkkFNVagvHkdg5fDfPTah210GqqD%3DD2-341PyA%40mail.gmail.com.


en.conf
Description: Binary data


[weewx-user] Re: adding graphs to Belchertown skin?

2021-05-14 Thread Eric Koester
Yep, that's exactly what I'm doing.

Does the content in the graphs.conf.example deliver you the stock webpage 
content that you see with no graphs.conf file in place?
I am guessing, yes?

On Friday, May 14, 2021 at 3:48:57 PM UTC-5 storm...@gmail.com wrote:

> Once you are editing the  graphs.conf.example file, you can save the file 
> as  graphs.conf.
>
> On Friday, May 14, 2021 at 12:08:18 PM UTC-4 eric.k...@gmail.com wrote:
>
>> I would like to enable (or add) a lightning graph to the Belchertown skin.
>> I'm reading the Belchertown README and FAQ here:
>> https://github.com/poblabs/weewx-belchertown
>>
>> It mentions editing a graphs.conf file.
>> I am working on a default install of the Belchertown skin, I see a 
>> graphs.conf.example file  in the skins/Belchertown directory but, there 
>> isn't a graphs.conf file!
>> How is Belchertown displaying any graphs at all, with no graphs.conf 
>> file??
>>
>> Eric
>>
>

-- 
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/3498ee73-8817-436c-9401-a142fb4180c8n%40googlegroups.com.


[weewx-user] Re: adding graphs to Belchertown skin?

2021-05-14 Thread storm...@gmail.com
Once you are editing the  graphs.conf.example file, you can save the file 
as  graphs.conf.

On Friday, May 14, 2021 at 12:08:18 PM UTC-4 eric.k...@gmail.com wrote:

> I would like to enable (or add) a lightning graph to the Belchertown skin.
> I'm reading the Belchertown README and FAQ here:
> https://github.com/poblabs/weewx-belchertown
>
> It mentions editing a graphs.conf file.
> I am working on a default install of the Belchertown skin, I see a 
> graphs.conf.example file  in the skins/Belchertown directory but, there 
> isn't a graphs.conf file!
> How is Belchertown displaying any graphs at all, with no graphs.conf file??
>
> Eric
>

-- 
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/7924be0c-772b-474e-8514-9edb9dd6a92bn%40googlegroups.com.


[weewx-user] Re: Help with HighCharts Error

2021-05-14 Thread gjr80
Given it’s a generator that is throwing the error it is quite possible the 
problem config file is skin related rather than weewx.conf. Given that 
WeeWX has managed to get this far that tends to rule out weewx.conf as the 
source. Obvious candidate is Belchertown skin.conf, it could be in a 
Belchertown specific config file (user.belchertown.HighchartsJsonGenerator 
throws the error) but since CheetahGenerator also throws the error that 
tends to point at skin.conf.

Either way line 146 has your answer.

Gary

On Saturday, 15 May 2021 at 02:12:36 UTC+10 vince wrote:

> On Friday, May 14, 2021 at 4:11:08 AM UTC-7 Mitchell Tuckness wrote:
>
>> I am still learning Linux, so my troubleshooting skills are pretty 
>> limited; so I am reaching out to you all to get some help to figure this 
>> issue out. Here is the error I see in Syslog.
>>
>> ay 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.reportengine: Found 
>> configuration file /home/weewx/skins/Belchertown/skin.conf for report 
>> 'Belchertown'
>> May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.cheetahgenerator: Using 
>> search list ['weewx.cheetahgenerator.Almanac', 
>> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
>> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
>> 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers', 
>> 'user.belchertown.getData']
>> May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.manager: Daily summary 
>> version is 4.0
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught 
>> unrecoverable exception in generator 
>> 'weewx.cheetahgenerator.CheetahGenerator'
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    Parse error in value at line 146. 
>>
> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    configobj.ParseError: Parse error in value at line 146.
>>
> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    Generator terminated
>> May 14 04:45:46 weewx-pi weewx[814] INFO weewx.reportengine: Copied 2 
>> files to /var/www/maladomini.net/
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught 
>> unrecoverable exception in generator 
>> 'user.belchertown.HighchartsJsonGenerator'
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    Parse error in value at line 146.
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    configobj.ParseError: Parse error in value at line 146.
>> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>>    Generator terminated
>>
>>
> I'd guess you have a typo at line 146 in weewx.conf since two different 
> skins are throwing the same error.
>
>  
>

-- 
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/11d05cde-629b-401a-9eae-b9f8d8ac9f3bn%40googlegroups.com.


[weewx-user] Re: Lost my weather cam (sort of)

2021-05-14 Thread vince
On Friday, May 14, 2021 at 10:12:27 AM UTC-7 Steve2Q wrote:

> When I connect to my home network, the camera shows up perfectly under 
> Weewx. The problem is when I pull up Weewx on another network, the camera 
> is not there. 


You'd have to check your skin to refresh your memory re: what URL you are 
trying to access.

If your link is trying to access an IP address that is on your LAN, that 
certainly is not going to work from Internet no matter what you do for port 
forwarding.

-- 
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/da30ea88-6ac5-4554-8be7-4ffef67ee139n%40googlegroups.com.


Re: [weewx-user] Can't create a weewx MySQL database

2021-05-14 Thread Luc Heijst
Tom,

You were right (as usual!)
Port 3306 is of a non-existing mariadb 5 configuration. I had to use port 
3307 for mariadb 10
Problem solved. Thanks for your help.

Luc

Op vrijdag 14 mei 2021 om 14:22:49 UTC-3 schreef tke...@gmail.com:

> Most likely the host and/or port is wrong.
>
> Experiment using the tool mysql:
>
> *mysql --host=192.168.0.15 --port=3306 -u weewx -p*
>
>
>
> On Fri, May 14, 2021 at 10:07 AM Luc Heijst  wrote:
>
>> Weewx version 4.5.1, Python 3.7.1
>>
>> When in weewx.conf a sqlite database is selected, then a new database is 
>> created and initialized.
>> But when in weewx.conf a MySQL database is selected, then no database is 
>> created.
>> Also I can't create a MySQL database with command 'wee_database'; see 
>> logging below
>>
>> Luc
>>
>>
>> No MySQL database 'sdr1' is created at startup of weewx, see logging 
>> below. An error occurs: Can't connect to MySQL server
>> =
>> May 14 13:39:25 pi32 sdr1[11692] INFO __main__: Initializing weewx 
>> version 4.5.1
>> May 14 13:39:25 pi32 sdr1[10691] INFO __main__: Using Python 3.7.3 
>> (default, Jan 22 2021, 20:04:44) #012[GCC 8.3.0]
>> May 14 13:39:25 pi32 sdr1[10691] INFO __main__: Platform 
>> Linux-5.10.17-v7+-armv7l-with-debian-10.9
>> May 14 13:39:25 pi32 sdr1[10691] INFO __main__: Locale is 'en_GB.UTF-8'
>> May 14 13:39:25 pi32 sdr1[10691] INFO __main__: PID file is 
>> /var/run/weewx_sdr1.pid
>> May 14 13:39:25 pi32 sdr1[10695] INFO __main__: Using configuration file 
>> /home/weewx/weewx_sdr1.conf
>> May 14 13:39:25 pi32 sdr1[10695] INFO __main__: Debug is 2
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG __main__: Initializing engine
>> May 14 13:39:25 pi32 sdr1[10695] INFO weewx.engine: Loading station type 
>> SDR (user.sdr)
>> May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: driver version is 0.78
>> May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: sensor map is {'temp1': 
>> 'temperature.6A55.TFA_1Packet', 'humidity1': 'humidity.6A55.TFA_1Packet', 
>> 'rssi1': 'rssi.6A55.TFA_1Packet', 'batteryStatus1': 
>> 'lowbat.6A55.TFA_1Packet', 'temp2': 'temperature.7131.TFA_1Packet', 
>> 'humidity2': 'humidity.7131.TFA_1Packet', 'rssi2': 'rssi.7131.TFA_1Packet', 
>> 'batteryStatus2': 'lowbat.7131.TFA_1Packet', 'temp3': 
>> 'temperature.6C85.TFA_1Packet', 'humidity3': 'humidity.6C85.TFA_1Packet', 
>> 'rssi3': 'rssi.6C85.TFA_1Packet', 'batteryStatus3': 
>> 'lowbat.6C85.TFA_1Packet', 'temp4': 'temperature.55C7.TFA_1Packet', 
>> 'humidity4': 'humidity.55C7.TFA_1Packet', 'rssi4': 'rssi.55C7.TFA_1Packet', 
>> 'batteryStatus4': 'lowbat.55C7.TFA_1Packet', 'temp5': 
>> 'temperature.61AA.TFA_1Packet', 'humidity5': 'humidity.61AA.TFA_1Packet', 
>> 'rssi5': 'rssi.61AA.TFA_1Packet', 'batteryStatus5': 
>> 'lowbat.61AA.TFA_1Packet', 'temp6': 'temperature..TFA_1Packet', 
>> 'humidity6': 'humidity..TFA_1Packet', 'rssi6': 'rssi..TFA_1Packet', 
>> 'batteryStatus6': 'lowbat..TFA_1Packet', 'temp7': 
>> 'temperature.4562.TFA_1Packet', 'humidity7': 'humidity.4562.TFA_1Packet', 
>> 'rssi7': 'rssi.4562.TFA_1Packet', 'batteryStatus7': 
>> 'lowbat.4562.TFA_1Packet', 'temp8': 'temperature.5565.TFA_1Packet', 
>> 'humidity8': 'humidity.5565.TFA_1Packet', 'rssi8': 'rssi.5565.TFA_1Packet', 
>> 'batteryStatus8': 'lowbat.5565.TFA_1Packet'}
>> May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: deltas is {'rain': 
>> 'rain_total', 'strikes': 'strikes_total'}
>> May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: startup process 'rtl_433 
>> -M utc -F json -R 150 -f 868.250M -s 1536k'
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG user.sdr: start async reader for 
>> stdout-thread
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG user.sdr: start async reader for 
>> stderr-thread
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service 
>> weewx.engine.StdTimeSynch
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading 
>> service weewx.engine.StdTimeSynch
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service 
>> weewx.engine.StdConvert
>> May 14 13:39:25 pi32 sdr1[10695] INFO weewx.engine: StdConvert target 
>> unit is 0x10
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading 
>> service weewx.engine.StdConvert
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service 
>> weewx.engine.StdCalibrate
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading 
>> service weewx.engine.StdCalibrate
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service 
>> weewx.engine.StdQC
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading 
>> service weewx.engine.StdQC
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service 
>> weewx.wxservices.StdWXCalculate
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.wxservices: Calculations for 
>> LOOP packets: {'windDir': 'software', 'windGustDir': 'software'}
>> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.wxservices: Calculations for 
>> archive records: 

Re: [weewx-user] Can't create a weewx MySQL database

2021-05-14 Thread Tom Keffer
Most likely the host and/or port is wrong.

Experiment using the tool mysql:

*mysql --host=192.168.0.15 --port=3306 -u weewx -p*



On Fri, May 14, 2021 at 10:07 AM Luc Heijst  wrote:

> Weewx version 4.5.1, Python 3.7.1
>
> When in weewx.conf a sqlite database is selected, then a new database is
> created and initialized.
> But when in weewx.conf a MySQL database is selected, then no database is
> created.
> Also I can't create a MySQL database with command 'wee_database'; see
> logging below
>
> Luc
>
>
> No MySQL database 'sdr1' is created at startup of weewx, see logging
> below. An error occurs: Can't connect to MySQL server
> =
> May 14 13:39:25 pi32 sdr1[11692] INFO __main__: Initializing weewx version
> 4.5.1
> May 14 13:39:25 pi32 sdr1[10691] INFO __main__: Using Python 3.7.3
> (default, Jan 22 2021, 20:04:44) #012[GCC 8.3.0]
> May 14 13:39:25 pi32 sdr1[10691] INFO __main__: Platform
> Linux-5.10.17-v7+-armv7l-with-debian-10.9
> May 14 13:39:25 pi32 sdr1[10691] INFO __main__: Locale is 'en_GB.UTF-8'
> May 14 13:39:25 pi32 sdr1[10691] INFO __main__: PID file is
> /var/run/weewx_sdr1.pid
> May 14 13:39:25 pi32 sdr1[10695] INFO __main__: Using configuration file
> /home/weewx/weewx_sdr1.conf
> May 14 13:39:25 pi32 sdr1[10695] INFO __main__: Debug is 2
> May 14 13:39:25 pi32 sdr1[10695] DEBUG __main__: Initializing engine
> May 14 13:39:25 pi32 sdr1[10695] INFO weewx.engine: Loading station type
> SDR (user.sdr)
> May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: driver version is 0.78
> May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: sensor map is {'temp1':
> 'temperature.6A55.TFA_1Packet', 'humidity1': 'humidity.6A55.TFA_1Packet',
> 'rssi1': 'rssi.6A55.TFA_1Packet', 'batteryStatus1':
> 'lowbat.6A55.TFA_1Packet', 'temp2': 'temperature.7131.TFA_1Packet',
> 'humidity2': 'humidity.7131.TFA_1Packet', 'rssi2': 'rssi.7131.TFA_1Packet',
> 'batteryStatus2': 'lowbat.7131.TFA_1Packet', 'temp3':
> 'temperature.6C85.TFA_1Packet', 'humidity3': 'humidity.6C85.TFA_1Packet',
> 'rssi3': 'rssi.6C85.TFA_1Packet', 'batteryStatus3':
> 'lowbat.6C85.TFA_1Packet', 'temp4': 'temperature.55C7.TFA_1Packet',
> 'humidity4': 'humidity.55C7.TFA_1Packet', 'rssi4': 'rssi.55C7.TFA_1Packet',
> 'batteryStatus4': 'lowbat.55C7.TFA_1Packet', 'temp5':
> 'temperature.61AA.TFA_1Packet', 'humidity5': 'humidity.61AA.TFA_1Packet',
> 'rssi5': 'rssi.61AA.TFA_1Packet', 'batteryStatus5':
> 'lowbat.61AA.TFA_1Packet', 'temp6': 'temperature..TFA_1Packet',
> 'humidity6': 'humidity..TFA_1Packet', 'rssi6': 'rssi..TFA_1Packet',
> 'batteryStatus6': 'lowbat..TFA_1Packet', 'temp7':
> 'temperature.4562.TFA_1Packet', 'humidity7': 'humidity.4562.TFA_1Packet',
> 'rssi7': 'rssi.4562.TFA_1Packet', 'batteryStatus7':
> 'lowbat.4562.TFA_1Packet', 'temp8': 'temperature.5565.TFA_1Packet',
> 'humidity8': 'humidity.5565.TFA_1Packet', 'rssi8': 'rssi.5565.TFA_1Packet',
> 'batteryStatus8': 'lowbat.5565.TFA_1Packet'}
> May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: deltas is {'rain':
> 'rain_total', 'strikes': 'strikes_total'}
> May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: startup process 'rtl_433
> -M utc -F json -R 150 -f 868.250M -s 1536k'
> May 14 13:39:25 pi32 sdr1[10695] DEBUG user.sdr: start async reader for
> stdout-thread
> May 14 13:39:25 pi32 sdr1[10695] DEBUG user.sdr: start async reader for
> stderr-thread
> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service
> weewx.engine.StdTimeSynch
> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdTimeSynch
> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service
> weewx.engine.StdConvert
> May 14 13:39:25 pi32 sdr1[10695] INFO weewx.engine: StdConvert target unit
> is 0x10
> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdConvert
> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service
> weewx.engine.StdCalibrate
> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdCalibrate
> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service
> weewx.engine.StdQC
> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading
> service weewx.engine.StdQC
> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service
> weewx.wxservices.StdWXCalculate
> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.wxservices: Calculations for
> LOOP packets: {'windDir': 'software', 'windGustDir': 'software'}
> May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.wxservices: Calculations for
> archive records: {'windDir': 'software', 'windGustDir': 'software'}
> May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: shutdown process rtl_433
> -M utc -F json -R 150 -f 868.250M -s 1536k
> May 14 13:39:25 pi32 sdr1[10695] DEBUG user.sdr: waiting for stdout-thread
> May 14 13:39:35 pi32 sdr1[10695] INFO user.sdr: timed out waiting for
> stdout-thread
> May 14 13:39:35 pi32 sdr1[10695] DEBUG user.sdr: 

[weewx-user] Re: Belchertown - MQTT with webhosting

2021-05-14 Thread Silvio Schömann
Hello everyone, 

can someone help me and explain why the SunshinTime code does not run in 
Weewx version 4.5.1? The calculation of the ratio_value is not carried out. 
The 0 values ​​are entered in the DB. An error message in the log is also 
not output. I'm using Manfred's simplified code. extensions.py and 
weewx.conf are also correct. 

 Thank you greetings Silvio



Manfred Maier schrieb am Samstag, 13. März 2021 um 20:25:11 UTC+1:

> I've just looked at my installation.
> I think the only missing step is to include the extension in the 
> weewx.conf:
>
>
> ##
>
> #   This section configures the internal weewx engine.
>
> [Engine]
> 
> [[Services]]
> # This section specifies the services that should be run. They are
> # grouped by type, and the order of services within each group
> # determines the order in which the services will be run.
> prep_services = weewx.engine.StdTimeSynch
> data_services = ,
> process_services = user.radiationhours.RadiationHours, 
> weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, 
> weewx.wxservices.StdWXCalculate
> #process_services = weewx.engine.StdConvert, 
> weewx.engine.StdCalibrate, weewx.engine.StdQC, 
> weewx.wxservices.StdWXCalculate
> archive_services = weewx.engine.StdArchive
> restful_services = weewx.restx.StdStationRegistry, 
> weewx.restx.StdWunderground, weewx.restx.StdPWSweather, 
> weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKAS, 
> user.mqtt.MQTT, user.windy.Windy, user.wcloud.WeatherCloud, 
> user.twitter.Twitter, user.wetter.Wetter, user.owm.OpenWeatherMap
> report_services = weewx.engine.StdPrint, weewx.engine.StdReport
>
> grua...@gmail.com schrieb am Freitag, 12. März 2021 um 10:49:16 UTC+1:
>
>> ok i think i didn't do the first extension with extension.py because mine 
>> is empty :-)
>>
>> i changed schema in weewx.config and recreated the database, then i got 
>> the new fields
>>
>> i am a bit confused now what to do :-)
>>
>> [DataBindings]
>>
>> [[wx_binding]]
>> # The database must match one of the sections in [Databases].
>> # This is likely to be the only option you would want to change.
>> database = archive_sqlite
>> # The name of the table within the database
>> table_name = archive
>> # The manager handles aggregation of data for historical summaries
>> manager = weewx.manager.DaySummaryManager
>> # The schema defines the structure of the database.
>> # It is *only* used when the database is created.
>> schema = user.weatherlink_live.schema
>>
>> Manfred Maier schrieb am Freitag, 12. März 2021 um 09:53:59 UTC+1:
>>
>>> I've also extended my database scheme a second time - without any issues.
>>>
>>> Here's my extensions.py
>>> I've just added the additional three fields to the already extended 
>>> scheme.
>>>
>>> grua...@gmail.com schrieb am Freitag, 12. März 2021 um 08:42:17 UTC+1:
>>>
 got it, thank you manfred!

 now a question about radiationhours: i have extended the schema already 
 one time for the weatherlink-driver: 
 https://github.com/michael-slx/weewx-weatherlink-live

 whats the correct way to extend the schema a second time? i tried it 
 one time, but then i lost the additional fields from the weatherlink-driver

 Manfred Maier schrieb am Donnerstag, 11. März 2021 um 19:28:55 UTC+1:

> Yes, you are correct. If the page is using https, all components need 
> to have a ssl certificate.
>
> grua...@gmail.com schrieb am Donnerstag, 11. März 2021 um 10:00:07 
> UTC+1:
>
>> hi,
>>
>> thanks for this file, i will try it after mqtt-setup :-)
>>
>> i always get failed connecting on my website and i think it's because 
>> my site is using https
>>
>> the test here is working fine, i get the live data 
>> http://www.hivemq.com/demos/websocket-client/
>>
>> do i have to run my local mosquitto installation also with ssl/tls or 
>> is there another way to get it working?
>>
>> regards,
>> chris
>>
>> Manfred Maier schrieb am Mittwoch, 10. März 2021 um 20:44:02 UTC+1:
>>
>>> I'm using the attached file, which I found somewhere here in this 
>>> user forum. 
>>> I've slightly adapted it to bette fit my needs. 
>>>
>>> Don't get confused by the filed name 'EmptyReal'. That was just a 
>>> spare field I had in my database.
>>>
>>> The calculation of the theoretical radiation level is not 100% 
>>> perfect, but it does the job.
>>>
>>>
>>> grua...@gmail.com schrieb am Mittwoch, 10. März 2021 um 20:05:55 
>>> UTC+1:
>>>
 ok, i will try it locally before, but vserver is also a good 
 (cheap) option :-)

 another question to you: 

[weewx-user] Lost my weather cam (sort of)

2021-05-14 Thread Steve2Q

Hi...for quite a while I have had a raspberry pi based weather cam running 
on Weewx. This camera is one of several which uses MotionEye and goes over 
Wifi to another RasPi acting as a LAN based camera "server". When I connect 
to my home network, the camera shows up perfectly under Weewx. The problem 
is when I pull up Weewx on another network, the camera is not there. I am 
sure it is a port forwarding problem, but I have tried many combinations of 
IP address and ports and so far have been unsuccessful. I should add that 
it worked fine until recently. Has anyone else had similar problems and 
have any pointers?
Thanks.

-- 
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/7507d4cc-2d9e-430f-b666-849796343544n%40googlegroups.com.


[weewx-user] Can't create a weewx MySQL database

2021-05-14 Thread Luc Heijst
Weewx version 4.5.1, Python 3.7.1

When in weewx.conf a sqlite database is selected, then a new database is 
created and initialized.
But when in weewx.conf a MySQL database is selected, then no database is 
created.
Also I can't create a MySQL database with command 'wee_database'; see 
logging below

Luc


No MySQL database 'sdr1' is created at startup of weewx, see logging below. 
An error occurs: Can't connect to MySQL server
=
May 14 13:39:25 pi32 sdr1[11692] INFO __main__: Initializing weewx version 
4.5.1
May 14 13:39:25 pi32 sdr1[10691] INFO __main__: Using Python 3.7.3 
(default, Jan 22 2021, 20:04:44) #012[GCC 8.3.0]
May 14 13:39:25 pi32 sdr1[10691] INFO __main__: Platform 
Linux-5.10.17-v7+-armv7l-with-debian-10.9
May 14 13:39:25 pi32 sdr1[10691] INFO __main__: Locale is 'en_GB.UTF-8'
May 14 13:39:25 pi32 sdr1[10691] INFO __main__: PID file is 
/var/run/weewx_sdr1.pid
May 14 13:39:25 pi32 sdr1[10695] INFO __main__: Using configuration file 
/home/weewx/weewx_sdr1.conf
May 14 13:39:25 pi32 sdr1[10695] INFO __main__: Debug is 2
May 14 13:39:25 pi32 sdr1[10695] DEBUG __main__: Initializing engine
May 14 13:39:25 pi32 sdr1[10695] INFO weewx.engine: Loading station type 
SDR (user.sdr)
May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: driver version is 0.78
May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: sensor map is {'temp1': 
'temperature.6A55.TFA_1Packet', 'humidity1': 'humidity.6A55.TFA_1Packet', 
'rssi1': 'rssi.6A55.TFA_1Packet', 'batteryStatus1': 
'lowbat.6A55.TFA_1Packet', 'temp2': 'temperature.7131.TFA_1Packet', 
'humidity2': 'humidity.7131.TFA_1Packet', 'rssi2': 'rssi.7131.TFA_1Packet', 
'batteryStatus2': 'lowbat.7131.TFA_1Packet', 'temp3': 
'temperature.6C85.TFA_1Packet', 'humidity3': 'humidity.6C85.TFA_1Packet', 
'rssi3': 'rssi.6C85.TFA_1Packet', 'batteryStatus3': 
'lowbat.6C85.TFA_1Packet', 'temp4': 'temperature.55C7.TFA_1Packet', 
'humidity4': 'humidity.55C7.TFA_1Packet', 'rssi4': 'rssi.55C7.TFA_1Packet', 
'batteryStatus4': 'lowbat.55C7.TFA_1Packet', 'temp5': 
'temperature.61AA.TFA_1Packet', 'humidity5': 'humidity.61AA.TFA_1Packet', 
'rssi5': 'rssi.61AA.TFA_1Packet', 'batteryStatus5': 
'lowbat.61AA.TFA_1Packet', 'temp6': 'temperature..TFA_1Packet', 
'humidity6': 'humidity..TFA_1Packet', 'rssi6': 'rssi..TFA_1Packet', 
'batteryStatus6': 'lowbat..TFA_1Packet', 'temp7': 
'temperature.4562.TFA_1Packet', 'humidity7': 'humidity.4562.TFA_1Packet', 
'rssi7': 'rssi.4562.TFA_1Packet', 'batteryStatus7': 
'lowbat.4562.TFA_1Packet', 'temp8': 'temperature.5565.TFA_1Packet', 
'humidity8': 'humidity.5565.TFA_1Packet', 'rssi8': 'rssi.5565.TFA_1Packet', 
'batteryStatus8': 'lowbat.5565.TFA_1Packet'}
May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: deltas is {'rain': 
'rain_total', 'strikes': 'strikes_total'}
May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: startup process 'rtl_433 -M 
utc -F json -R 150 -f 868.250M -s 1536k'
May 14 13:39:25 pi32 sdr1[10695] DEBUG user.sdr: start async reader for 
stdout-thread
May 14 13:39:25 pi32 sdr1[10695] DEBUG user.sdr: start async reader for 
stderr-thread
May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service 
weewx.engine.StdTimeSynch
May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdTimeSynch
May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service 
weewx.engine.StdConvert
May 14 13:39:25 pi32 sdr1[10695] INFO weewx.engine: StdConvert target unit 
is 0x10
May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdConvert
May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service 
weewx.engine.StdCalibrate
May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdCalibrate
May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service 
weewx.engine.StdQC
May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdQC
May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.engine: Loading service 
weewx.wxservices.StdWXCalculate
May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.wxservices: Calculations for 
LOOP packets: {'windDir': 'software', 'windGustDir': 'software'}
May 14 13:39:25 pi32 sdr1[10695] DEBUG weewx.wxservices: Calculations for 
archive records: {'windDir': 'software', 'windGustDir': 'software'}
May 14 13:39:25 pi32 sdr1[10695] INFO user.sdr: shutdown process rtl_433 -M 
utc -F json -R 150 -f 868.250M -s 1536k
May 14 13:39:25 pi32 sdr1[10695] DEBUG user.sdr: waiting for stdout-thread
May 14 13:39:35 pi32 sdr1[10695] INFO user.sdr: timed out waiting for 
stdout-thread
May 14 13:39:35 pi32 sdr1[10695] DEBUG user.sdr: waiting for stderr-thread
May 14 13:39:45 pi32 sdr1[10695] INFO user.sdr: timed out waiting for 
stderr-thread
May 14 13:39:45 pi32 sdr1[10695] DEBUG user.sdr: close stdout
May 14 13:39:45 pi32 sdr1[10695] DEBUG user.sdr: close stderr
May 14 13:39:46 pi32 sdr1[10695] DEBUG user.sdr: kill process
May 14 13:39:46 

[weewx-user] Re: adding graphs to Belchertown skin?

2021-05-14 Thread vince
On Friday, May 14, 2021 at 9:08:18 AM UTC-7 eric.k...@gmail.com wrote:

> I'm reading the Belchertown README and FAQ here:
> https://github.com/poblabs/weewx-belchertown
>
> It mentions editing a graphs.conf file.
> I am working on a default install of the Belchertown skin, I see a 
> graphs.conf.example file  in the skins/Belchertown directory but, there 
> isn't a graphs.conf file!
> How is Belchertown displaying any graphs at all, with no graphs.conf file??
>
>
Built-in defaults.

*"...even if graphs.conf does not exist, a default set of graphs will be 
displayed..."*

If you look at graphs.conf.example in your Belchertown skin directory 
you'll see a graphs.conf.example file.   If you look at the comments at the 
top of 'that', it points you to Pat's wiki on how to customize graphs 
at 
https://github.com/poblabs/weewx-belchertown/wiki/Belchertown-Charts-Documentation
 
which has the gory details.
 

-- 
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/14d7e359-966a-402d-ace8-49535ddffda8n%40googlegroups.com.


[weewx-user] Re: Help with HighCharts Error

2021-05-14 Thread vince
On Friday, May 14, 2021 at 4:11:08 AM UTC-7 Mitchell Tuckness wrote:

> I am still learning Linux, so my troubleshooting skills are pretty 
> limited; so I am reaching out to you all to get some help to figure this 
> issue out. Here is the error I see in Syslog.
>
> ay 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.reportengine: Found 
> configuration file /home/weewx/skins/Belchertown/skin.conf for report 
> 'Belchertown'
> May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.cheetahgenerator: Using 
> search list ['weewx.cheetahgenerator.Almanac', 
> 'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
> 'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
> 'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers', 
> 'user.belchertown.getData']
> May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.manager: Daily summary 
> version is 4.0
> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught 
> unrecoverable exception in generator 
> 'weewx.cheetahgenerator.CheetahGenerator'
> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>    Parse error in value at line 146. 
>
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
> configobj.ParseError: Parse error in value at line 146.
> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>    Generator terminated
> May 14 04:45:46 weewx-pi weewx[814] INFO weewx.reportengine: Copied 2 
> files to /var/www/maladomini.net/
> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught 
> unrecoverable exception in generator 
> 'user.belchertown.HighchartsJsonGenerator'
> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>    Parse error in value at line 146.
> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>    configobj.ParseError: Parse error in value at line 146.
> May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:
>    Generator terminated
>
>
I'd guess you have a typo at line 146 in weewx.conf since two different 
skins are throwing the same error.

 

-- 
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/ec8b931b-0166-4151-8771-4ad40caed308n%40googlegroups.com.


[weewx-user] adding graphs to Belchertown skin?

2021-05-14 Thread Eric Koester
I would like to enable (or add) a lightning graph to the Belchertown skin.
I'm reading the Belchertown README and FAQ here:
https://github.com/poblabs/weewx-belchertown

It mentions editing a graphs.conf file.
I am working on a default install of the Belchertown skin, I see a 
graphs.conf.example file  in the skins/Belchertown directory but, there 
isn't a graphs.conf file!
How is Belchertown displaying any graphs at all, with no graphs.conf file??

Eric

-- 
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/5e19e267-2db3-4802-8c5a-1dba0b48d76bn%40googlegroups.com.


Re: [weewx-user] Re: possible for weewx to accept data via MQTT devices?

2021-05-14 Thread bell...@gmail.com
Eric,
There are ‘default’ units for each WeeWX unit system. For the METRIC unit 
system the default for altimeter, barometer, and pressure is mbar/hPa. For 
additional information see, http://www.weewx.com/docs/customizing.htm#units

rich

On Thursday, 13 May 2021 at 16:26:58 UTC-4 eric.k...@gmail.com wrote:

> THANKS RICH!!
> It really helped to see my actual JSON message get translated into the 
> weewx.conf file format!
>
> WeeWX got it's first barometer reading shortly after I made the edits and 
> retstarted weewx at 2:59pm today!
> [image: image.png]
>
> *Quick question:*
> Since I removed the line "units = hPa" from the confg file, how does weewx 
> know that my pressure sensor reading is hPa rather than kPa?
> An educated guess, based on the magnitude?
>
> THANKS ALL!
> With a barometer reading, my WeeWX setup is now complete!!
>
> Eric
>
> On Thu, May 13, 2021 at 12:03 PM bell...@gmail.com  
> wrote:
>
>> Using this data point that you posted earlier, I formatted it a bit to 
>> better show the json structure.
>> 21:54:27.154 MQT: sensors/BMP280/SENSOR = 
>> {
>>   "Time":"2021-05-12T21:54:27",
>>   " BMP280":
>> {
>>   "Temperature":22.0,
>>   "Pressure":990.8
>> },
>>   "PressureUnit":"hPa",
>>   "TempUnit":"C"
>> }
>>
>> You’ve got one topic, ‘sensors/BMP280/SENSOR’ that is publishing json 
>> data.
>> You’ve got four top level fields, ‘Time’, ‘BMP280’, ‘PressureUnit’, and 
>> ‘TempUnit’.
>> ‘BMP280’ is an object consisting of two fields, ‘ Temperature’, and 
>> ‘Pressure’. I am calling this ‘nested json’. This will result in 2 fields 
>> named ‘BMP280_Temperature’ and ‘BMP280_Pressure’.
>>
>> So, your configuration should be something like this.
>> # The message handler to use
>> [[message_callback]]
>> # The format of the MQTT payload.
>> # Currently support: individual, json, keyword
>> # Must be specified.
>> type = json
>> 
>> # The topics to subscribe to.
>> [[topics]]
>> # Units for MQTT payloads without unit value.
>> # Valid values: US, METRIC, METRICWX
>> # Default is: US
>> unit_system = METRIC
>>
>> [[[sensors/BMP280/SENSOR]]]
>> Time
>> ignore = true 
>> 
>> BMP280_Temperature
>> # The WeeWX name.
>> # Default is the name from MQTT.
>> name = appTemp1
>>
>> BMP280_Pressure
>> # The WeeWX name.
>> # Default is the name from MQTT.
>> name = barometer
>> 
>> # The incoming field name from MQTT.
>> PressureUnit
>> ignore = true
>> 
>> # The incoming field name from MQTT.
>> TemperatureUnit
>> ignore = true
>>
>> rich
>> On Thursday, 13 May 2021 at 10:37:54 UTC-4 eric.k...@gmail.com wrote:
>>
>>> I've been looking at Rich Bell's nested json example here:
>>> https://github.com/bellrichm/WeeWX-MQTTSubscribe/wiki/json-example
>>> He shows a first topic, second topic, third topic, etc.
>>>
>>> If you include the time, I think this BMP280 has 5 topics?  (Time, 
>>> Temperature, Pressure, PressureUnit, TempUnit)
>>> Here's what I've got now: in my weewx.conf file:
>>>
>>> # The message handler to use
>>> [[message_callback]]
>>> # The format of the MQTT payload.
>>> # Currently support: individual, json, keyword
>>> # Must be specified.
>>> type = json
>>> 
>>> # When the json is nested, the delimiter between the hierarchies.
>>> # Default is _.
>>> flatten_delimiter = "_"
>>> 
>>> # The topics to subscribe to.
>>> [[topics]]
>>> # Units for MQTT payloads without unit value.
>>> # Valid values: US, METRIC, METRICWX
>>> # Default is: US
>>> unit_system = METRIC
>>>   
>>> use_server_datetime = True
>>> ignore_start_time = True
>>> ignore_end_time = True
>>> 
>>> [[[first/topic]]]
>>> # The incoming field name from MQTT.
>>> Time
>>> ignore = true 
>>> 
>>> [[[second/topic]]]
>>> BME280_Temperature
>>> # The WeeWX name.
>>> # Default is the name from MQTT.
>>> name = appTemp1
>>> units = degree_C  
>>>
>>> BME280_Pressure
>>> # The WeeWX name.
>>> # Default is the name from MQTT.
>>> name = barometer
>>> units = hPa
>>> 
>>> [[[third/topic]]]
>>> # The incoming field name from MQTT.
>>> PressureUnit
>>> ignore = true
>>> 
>>> [[[fourth/topic]]]
>>> # The incoming 

[weewx-user] Help with HighCharts Error

2021-05-14 Thread Mitchell Tuckness
Hi all! I am having an issue with Weewx & the Belchertown skin. A short 
history of what I have tried doing. I was running my station on a Raspberry 
Pi 4 and everything was good, until the PI started finding errors on the SD 
card, well apparently it was. So it was flagging the OS as Read Only. I 
tried a plethora of things to resolve it and finally, I got an old laptop 
out and installed Ubuntu on it. 

I then installed Weewx, the drivers for the GW1000 and a few services like 
OpenWeather, MQTT and others.

Once I got all the stuff I used previously, I copied the configuration file 
(weewx.conf) from the PI over to the new system to save time reconfiguring 
it with all the service logins and that. Then I went to add some additional 
Graphs, but they are not showing up. 

I am still learning Linux, so my troubleshooting skills are pretty limited; 
so I am reaching out to you all to get some help to figure this issue out. 
Here is the error I see in Syslog.

ay 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.reportengine: Found 
configuration file /home/weewx/skins/Belchertown/skin.conf for report 
'Belchertown'
May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.cheetahgenerator: Using 
search list ['weewx.cheetahgenerator.Almanac', 
'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Current', 
'weewx.cheetahgenerator.Stats', 'weewx.cheetahgenerator.UnitInfo', 
'weewx.cheetahgenerator.Extras', 'weewx.cheetahgenerator.JSONHelpers', 
'user.belchertown.getData']
May 14 04:45:46 weewx-pi weewx[814] DEBUG weewx.manager: Daily summary 
version is 4.0
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine: Caught 
unrecoverable exception in generator 
'weewx.cheetahgenerator.CheetahGenerator'
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
Parse error in value at line 146.
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
Traceback (most recent call last):
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
  File "/home/weewx/bin/weewx/reportengine.py", line 196, in run
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
obj.start()
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
  File "/home/weewx/bin/weewx/reportengine.py", line 281, in start
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
self.run()
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
  File "/home/weewx/bin/weewx/cheetahgenerator.py", line 152, in run
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
ngen = self.generate(gen_dict[section_name], self.gen_ts)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
  File "/home/weewx/bin/weewx/cheetahgenerator.py", line 222, in generate
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
ngen += self.generate(section[subsection], gen_ts)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
  File "/home/weewx/bin/weewx/cheetahgenerator.py", line 222, in generate
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
ngen += self.generate(section[subsection], gen_ts)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
  File "/home/weewx/bin/weewx/cheetahgenerator.py", line 310, in generate
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
searchList = self._getSearchList(encoding, timespan,
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
  File "/home/weewx/bin/weewx/cheetahgenerator.py", line 387, in 
_getSearchList
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
searchList += obj.get_extension_list(timespan, db_lookup)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
  File "/home/weewx/bin/user/belchertown.py", line 307, in 
get_extension_list
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
chart_dict = configobj.ConfigObj(chart_config_path, file_error=True)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
  File "/usr/lib/python3/dist-packages/configobj.py", line 1229, in __init__
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
self._load(infile, configspec)
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
  File "/usr/lib/python3/dist-packages/configobj.py", line 1318, in _load
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
raise error
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
  File "", line None
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
configobj.ParseError: Parse error in value at line 146.
May 14 04:45:46 weewx-pi weewx[814] ERROR weewx.reportengine:   
Generator terminated
May