[weewx-user] Re: OWFS & PI4

2019-07-20 Thread vigilancewx
Glenn

Thanks for the detailed information very informative

i guess i will keep a good working .img file nice and safe 
If and when i do any upgrade i have something to fall back on


I know if we never upgraded we would still be using DOS or win 3.1 but 
sometimes its a headache

thanks again



On Thursday, July 18, 2019 at 8:55:42 AM UTC+1, vigilancewx wrote:
>
> I have used OWFS service for a few years and its worked flawlessly
>
> I am trying to get it to work on a new PI4 but i cant get to read any 
> sensors
>
>
> I have followed the owfs service installation guide as in the past
>
>
>
>
> pi@raspberrypi:~/Myideas $ sudo PYTHONPATH=/home/weewx/bin python 
> /home/weewx/bin/user/owfs.py --sensors
> Traceback (most recent call last):
>   File "/home/weewx/bin/user/owfs.py", line 618, in 
> main()
>   File "/home/weewx/bin/user/owfs.py", line 578, in main
> ow.init(iface)
>   File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 221, in init
> raise exNoController
> ow.exNoController
>
> Previously i  think the only time i have had the above error is when i 
> have forgotten to plug the dalas adapter in to a USB port
>
> it appears the service cant read my usb port
>
> from the syslog file
> Jul 18 08:29:44 raspberrypi OWFS[3132]: DEFAULT: owlib.c:(208) Cannot open 
> USB bus master
> Jul 18 08:29:44 raspberrypi OWFS[3132]: DEFAULT: owlib.c:(52) No valid 
> 1-wire buses found
>
> but the device is connected
>
>
> pi@raspberrypi:~/Myideas $ lsusb
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 003: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 
> 1-Wire adapter
> Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> pi@raspberrypi:~/Myideas $
>
>
> any ideas how to read the senors??
>
> thanks for any help
>
>
>

-- 
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/a6c9a19a-910f-4e25-a4da-7da4c8f91c1c%40googlegroups.com.


[weewx-user] Re: OWFS & PI4

2019-07-19 Thread vigilancewx
Hi

Just tried this method and it has worked on 3 separate  installs

one question when i update or upgrade the pi will it over write these 
files?? causing it to fail again




On Thursday, July 18, 2019 at 8:55:42 AM UTC+1, vigilancewx wrote:
>
> I have used OWFS service for a few years and its worked flawlessly
>
> I am trying to get it to work on a new PI4 but i cant get to read any 
> sensors
>
>
> I have followed the owfs service installation guide as in the past
>
>
>
>
> pi@raspberrypi:~/Myideas $ sudo PYTHONPATH=/home/weewx/bin python 
> /home/weewx/bin/user/owfs.py --sensors
> Traceback (most recent call last):
>   File "/home/weewx/bin/user/owfs.py", line 618, in 
> main()
>   File "/home/weewx/bin/user/owfs.py", line 578, in main
> ow.init(iface)
>   File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 221, in init
> raise exNoController
> ow.exNoController
>
> Previously i  think the only time i have had the above error is when i 
> have forgotten to plug the dalas adapter in to a USB port
>
> it appears the service cant read my usb port
>
> from the syslog file
> Jul 18 08:29:44 raspberrypi OWFS[3132]: DEFAULT: owlib.c:(208) Cannot open 
> USB bus master
> Jul 18 08:29:44 raspberrypi OWFS[3132]: DEFAULT: owlib.c:(52) No valid 
> 1-wire buses found
>
> but the device is connected
>
>
> pi@raspberrypi:~/Myideas $ lsusb
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 003: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 
> 1-Wire adapter
> Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> pi@raspberrypi:~/Myideas $
>
>
> any ideas how to read the senors??
>
> thanks for any help
>
>
>

-- 
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/61e04a56-7e35-4029-81f4-2440defe6107%40googlegroups.com.


[weewx-user] Re: OWFS & PI4

2019-07-19 Thread vigilancewx
OK I figured it out with your help something wrong with python-ow 3-xxx

get a clean install with regards to 1 wire ie python-ow

the idea is to install python-ow2.9

download the deb packages

i copied them to my /var/cache/apt/archives/partia/ 
dont know if that matters

and installed them

works fine now


sudo dpkg -i 
/var/cache/apt/archives/partial/libusb-0.1-4_0.1.12-25_armhf.deb

sudo dpkg -i /var/cache/apt/archives/partial/owfs-common_2.9p8-6_all.deb

sudo dpkg -i /var/cache/apt/archives/partial/libow-2.9-8__2.9p8-6_armhf.deb

sudo dpkg -i /var/cache/apt/archives/partial/python-ow_2.9p8-6_armhf.deb

sudo /home/weewx/bin/wee_extension --install weewx-owfs-0.21.tgz








On Thursday, July 18, 2019 at 8:55:42 AM UTC+1, vigilancewx wrote:

> I have used OWFS service for a few years and its worked flawlessly
>
> I am trying to get it to work on a new PI4 but i cant get to read any 
> sensors
>
>
> I have followed the owfs service installation guide as in the past
>
>
>
>
> pi@raspberrypi:~/Myideas $ sudo PYTHONPATH=/home/weewx/bin python 
> /home/weewx/bin/user/owfs.py --sensors
> Traceback (most recent call last):
>   File "/home/weewx/bin/user/owfs.py", line 618, in 
> main()
>   File "/home/weewx/bin/user/owfs.py", line 578, in main
> ow.init(iface)
>   File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 221, in init
> raise exNoController
> ow.exNoController
>
> Previously i  think the only time i have had the above error is when i 
> have forgotten to plug the dalas adapter in to a USB port
>
> it appears the service cant read my usb port
>
> from the syslog file
> Jul 18 08:29:44 raspberrypi OWFS[3132]: DEFAULT: owlib.c:(208) Cannot open 
> USB bus master
> Jul 18 08:29:44 raspberrypi OWFS[3132]: DEFAULT: owlib.c:(52) No valid 
> 1-wire buses found
>
> but the device is connected
>
>
> pi@raspberrypi:~/Myideas $ lsusb
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 001 Device 003: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 
> 1-Wire adapter
> Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> pi@raspberrypi:~/Myideas $
>
>
> any ideas how to read the senors??
>
> thanks for any help
>
>
>

-- 
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/b09164a0-66ea-4a85-ae25-45455fc2bf4d%40googlegroups.com.


[weewx-user] Re: OWFS & PI4

2019-07-18 Thread vigilancewx
Hi Glenn

thanks for helping out

Tried the following but still getting errors

sudo apt upate
sudo apt upgrade
sudo apt install owserver ow-shell
/etc/owfs.conf 
file updated




pi@raspberrypi:~ $ sudo apt install owserver ow-shell
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer 
required:
  libboost-system1.62.0 libboost-thread1.62.0 libreoffice-gtk2
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
  libftdi1-2 libow-3.2-3 owfs-common
The following NEW packages will be installed:
  libftdi1-2 libow-3.2-3 ow-shell owfs-common owserver
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 375 kB of archives.
After this operation, 1,348 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive-bm.raspbian.org/raspbian buster/main armhf libftdi1-2 
armhf 1.4-1+b2 [27.7 kB]
Get:2 http://archive-bm.raspbian.org/raspbian buster/main armhf owfs-common 
all 3.2p3+dfsg1-2 [17.6 kB]
Get:3 http://archive-bm.raspbian.org/raspbian buster/main armhf libow-3.2-3 
armhf 3.2p3+dfsg1-2 [269 kB]
Get:4 http://archive-bm.raspbian.org/raspbian buster/main armhf ow-shell 
armhf 3.2p3+dfsg1-2 [29.8 kB]
Get:5 http://archive-bm.raspbian.org/raspbian buster/main armhf owserver 
armhf 3.2p3+dfsg1-2 [30.8 kB]
Fetched 375 kB in 6s (59.2 kB/s)
Selecting previously unselected package libftdi1-2:armhf.
(Reading database ... 140620 files and directories currently installed.)
Preparing to unpack .../libftdi1-2_1.4-1+b2_armhf.deb ...
Unpacking libftdi1-2:armhf (1.4-1+b2) ...
Selecting previously unselected package owfs-common.
Preparing to unpack .../owfs-common_3.2p3+dfsg1-2_all.deb ...
Unpacking owfs-common (3.2p3+dfsg1-2) ...
Selecting previously unselected package libow-3.2-3:armhf.
Preparing to unpack .../libow-3.2-3_3.2p3+dfsg1-2_armhf.deb ...
Unpacking libow-3.2-3:armhf (3.2p3+dfsg1-2) ...
Selecting previously unselected package ow-shell.
Preparing to unpack .../ow-shell_3.2p3+dfsg1-2_armhf.deb ...
Unpacking ow-shell (3.2p3+dfsg1-2) ...
Selecting previously unselected package owserver.
Preparing to unpack .../owserver_3.2p3+dfsg1-2_armhf.deb ...
Unpacking owserver (3.2p3+dfsg1-2) ...
Setting up libftdi1-2:armhf (1.4-1+b2) ...
Setting up owfs-common (3.2p3+dfsg1-2) ...

Creating config file /etc/owfs.conf with new version
Setting up ow-shell (3.2p3+dfsg1-2) ...
Setting up libow-3.2-3:armhf (3.2p3+dfsg1-2) ...
Setting up owserver (3.2p3+dfsg1-2) ...
Job for owserver.service failed because the service did not take the steps 
required by its unit configuration.
See "systemctl status owserver.service" and "journalctl -xe" for details.
invoke-rc.d: initscript owserver, action "start" failed.
● owserver.service - Backend server for 1-wire control
   Loaded: loaded (/lib/systemd/system/owserver.service; disabled; vendor 
preset: enabled)
   Active: activating (auto-restart) (Result: protocol) since Thu 
2019-07-18 15:55:14 BST; 28ms ago
 Docs: man:owserver(1)
  Process: 8854 ExecStart=/usr/bin/owserver -c /etc/owfs.conf (code=exited, 
status=0/SUCCESS)
 Main PID: 8854 (code=exited, status=0/SUCCESS)
dpkg: error processing package owserver (--configure):
 installed owserver package post-installation script subprocess returned 
error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for systemd (241-5+rpi1) ...
Errors were encountered while processing:
 owserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~ $ sudo nano /etc/owfs.conf/
pi@raspberrypi:~ $ sudo nano /etc/owfs.conf

then
/etc/init.d/owserver status return


pi@raspberrypi:~ $ /etc/init.d/owserver status
● owserver.service - Backend server for 1-wire control
   Loaded: loaded (/lib/systemd/system/owserver.service; disabled; vendor 
preset: enabled)
   Active: failed (Result: protocol) since Thu 2019-07-18 16:02:44 BST; 
1min 45s ago
 Docs: man:owserver(1)
  Process: 9530 ExecStart=/usr/bin/owserver -c /etc/owfs.conf (code=exited, 
status=0/SUCCESS)
 Main PID: 9530 (code=exited, status=0/SUCCESS)

Jul 18 16:02:44 raspberrypi systemd[1]: owserver.service: Service 
RestartSec=100ms expired, scheduling restart.
Jul 18 16:02:44 raspberrypi systemd[1]: owserver.service: Scheduled restart 
job, restart counter is at 5.
Jul 18 16:02:44 raspberrypi systemd[1]: Stopped Backend server for 1-wire 
control.
Jul 18 16:02:44 raspberrypi systemd[1]: owserver.service: Start request 
repeated too quickly.
Jul 18 16:02:44 raspberrypi systemd[1]: owserver.service: Failed with 
result 'protocol'.
Jul 18 16:02:44 raspberrypi systemd[1]: Failed to start Backend server for 
1-wire control.
pi@raspberrypi:~ $ ^C







On Thursday, July 18, 2019 at 8:55:42 AM UTC+1, vigilancewx wrote:
>
> I have used OWFS service for a few years and its work

[weewx-user] Re: OWFS & PI4

2019-07-18 Thread vigilancewx
Thank you for the information

yes that appears to be the problem

http://203.213.243.61/weewx/owpkg/owpkg.tar.gz 
<http://www.google.com/url?q=http%3A%2F%2F203.213.243.61%2Fweewx%2Fowpkg%2Fowpkg.tar.gz=D=1=AFQjCNGchfIwPGp0wUYAWpve_0JFLYIzxg>

the link has expired so unable to update the relevant packages.
  above seems to easier fix  as i am unsure how to implement the final 
section added by Howard   

i have followed the steps as you can see below


pi@raspberrypi:~ $ sudo apt install owserver ow-shell
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  libftdi1-2 libow-3.2-3 owfs-common
The following NEW packages will be installed:
  libftdi1-2 libow-3.2-3 ow-shell owfs-common owserver
0 upgraded, 5 newly installed, 0 to remove and 2 not upgraded.
Need to get 375 kB of archives.
After this operation, 1,348 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://archive-bm.raspbian.org/raspbian buster/main armhf libftdi1-2 
armhf 1.4-1+b2 [27.7 kB]
Get:2 http://archive-bm.raspbian.org/raspbian buster/main armhf owfs-common 
all 3.2p3+dfsg1-2 [17.6 kB]
Get:3 http://archive-bm.raspbian.org/raspbian buster/main armhf libow-3.2-3 
armhf 3.2p3+dfsg1-2 [269 kB]
Get:4 http://archive-bm.raspbian.org/raspbian buster/main armhf ow-shell 
armhf 3.2p3+dfsg1-2 [29.8 kB]
Get:5 http://archive-bm.raspbian.org/raspbian buster/main armhf owserver 
armhf 3.2p3+dfsg1-2 [30.8 kB]
Fetched 375 kB in 1s (370 kB/s)
Selecting previously unselected package libftdi1-2:armhf.
(Reading database ... 134162 files and directories currently installed.)
Preparing to unpack .../libftdi1-2_1.4-1+b2_armhf.deb ...
Unpacking libftdi1-2:armhf (1.4-1+b2) ...
Selecting previously unselected package owfs-common.
Preparing to unpack .../owfs-common_3.2p3+dfsg1-2_all.deb ...
Unpacking owfs-common (3.2p3+dfsg1-2) ...
Selecting previously unselected package libow-3.2-3:armhf.
Preparing to unpack .../libow-3.2-3_3.2p3+dfsg1-2_armhf.deb ...
Unpacking libow-3.2-3:armhf (3.2p3+dfsg1-2) ...
Selecting previously unselected package ow-shell.
Preparing to unpack .../ow-shell_3.2p3+dfsg1-2_armhf.deb ...
Unpacking ow-shell (3.2p3+dfsg1-2) ...
Selecting previously unselected package owserver.
Preparing to unpack .../owserver_3.2p3+dfsg1-2_armhf.deb ...
Unpacking owserver (3.2p3+dfsg1-2) ...
Setting up libftdi1-2:armhf (1.4-1+b2) ...
Setting up owfs-common (3.2p3+dfsg1-2) ...

Creating config file /etc/owfs.conf with new version
Setting up ow-shell (3.2p3+dfsg1-2) ...
Setting up libow-3.2-3:armhf (3.2p3+dfsg1-2) ...
Setting up owserver (3.2p3+dfsg1-2) ...
Job for owserver.service failed because the service did not take the steps 
required by its unit configuration.
See "systemctl status owserver.service" and "journalctl -xe" for details.
invoke-rc.d: initscript owserver, action "start" failed.
● owserver.service - Backend server for 1-wire control
   Loaded: loaded (/lib/systemd/system/owserver.service; disabled; vendor 
preset: enabled)
   Active: activating (auto-restart) (Result: protocol) since Thu 
2019-07-18 12:53:41 BST; 29ms ago
 Docs: man:owserver(1)
  Process: 1193 ExecStart=/usr/bin/owserver -c /etc/owfs.conf (code=exited, 
status=0/SUCCESS)
 Main PID: 1193 (code=exited, status=0/SUCCESS)
dpkg: error processing package owserver (--configure):
 installed owserver package post-installation script subprocess returned 
error exit status 1
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.28-10+rpi1) ...
Processing triggers for systemd (241-5+rpi1) ...
Errors were encountered while processing:
 owserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~ $


 owserver
E: Sub-process /usr/bin/dpkg returned an error code (1)
pi@raspberrypi:~ $ ^C
pi@raspberrypi:~ $ sudo  /etc/owfs.conf
sudo: /etc/owfs.conf: command not found
pi@raspberrypi:~ $ sudo  nano /etc/owfs.conf
pi@raspberrypi:~ $ sudo  nano /etc/owfs.conf
pi@raspberrypi:~ $  sudo systemctl stop owserver
pi@raspberrypi:~ $ sudo systemctl enable owserver
Synchronizing state of owserver.service with SysV service script with 
/lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable owserver
Created symlink 
/etc/systemd/system/multi-user.target.wants/owserver.service → 
/lib/systemd/system/owserver.service.
Created symlink /etc/systemd/system/sockets.target.wants/owserver.socket → 
/lib/systemd/system/owserver.socket.
pi@raspberrypi:~ $ sudo systemctl start owserver
Job for owserver.service failed because the service did not take the steps 
required by its unit configuration.
See "systemctl status owserver.service" and "journalctl -xe" for details.
pi@raspberrypi:~ $




On Thursday, July 18, 2019 at 8:55:42 AM UTC+1, vigilancewx wrote:
>
> I have used OWFS service for a few years and its worked flawlessly
>
> I am trying to get i

[weewx-user] OWFS & PI4

2019-07-18 Thread vigilancewx
I have used OWFS service for a few years and its worked flawlessly

I am trying to get it to work on a new PI4 but i cant get to read any 
sensors


I have followed the owfs service installation guide as in the past




pi@raspberrypi:~/Myideas $ sudo PYTHONPATH=/home/weewx/bin python 
/home/weewx/bin/user/owfs.py --sensors
Traceback (most recent call last):
  File "/home/weewx/bin/user/owfs.py", line 618, in 
main()
  File "/home/weewx/bin/user/owfs.py", line 578, in main
ow.init(iface)
  File "/usr/lib/python2.7/dist-packages/ow/__init__.py", line 221, in init
raise exNoController
ow.exNoController

Previously i  think the only time i have had the above error is when i have 
forgotten to plug the dalas adapter in to a USB port

it appears the service cant read my usb port

from the syslog file
Jul 18 08:29:44 raspberrypi OWFS[3132]: DEFAULT: owlib.c:(208) Cannot open 
USB bus master
Jul 18 08:29:44 raspberrypi OWFS[3132]: DEFAULT: owlib.c:(52) No valid 
1-wire buses found

but the device is connected


pi@raspberrypi:~/Myideas $ lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 
1-Wire adapter
Bus 001 Device 002: ID 2109:3431 VIA Labs, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
pi@raspberrypi:~/Myideas $


any ideas how to read the senors??

thanks for any help


-- 
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/91744861-af7c-4378-8190-c1fc6ae425ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: sds011 install

2019-06-27 Thread vigilancewx
Hi

As far as I can tell I have followed all the instructions and no data is 
loaded no sdb file created?

not sure what I am doing wrong






On Wednesday, June 26, 2019 at 11:02:53 PM UTC+1, vigilancewx wrote:

> Hi 
>
> I am trying to install the sds011 service 
>
> Installation
>
>  
>
> 0) Install weeWX (see weewx.com for details)
>
>  
>
> 1) Download the SDS011 extension
>
>  
>
> wget -O weewx-sds011.zip 
> *https://github.com/matthewwall/weewx-sds011/archive/master.zip* 
> <https://github.com/matthewwall/weewx-sds011/archive/master.zip>
>
>  
>
> 2) Install the extension
>
>  
>
> wee_extension --install weewx-sds011.zip
>
>  
>
> 3) Configure the driver
>
>  
>
> wee_config --reconfigure
>
>  
>
> 4) start weewx
>
>  
>
> sudo /etc/init.d/weewx start
>
>  
>
> followed the above all it seems to do is install the install.py to
>
>  
>
> user/installer/sds011 directory
>
>  
>
>  
>
>  
>
> and sds011.py to the bin/user directory
>
>  
>
> adding this to the Weewx.conf
>
>  
>
>  
>
> #
>
>  
>
> # Options for extension 'sds011'
>
> [SDS011]
>
>  
>
> ##
>
>  
>
> Do I make the install.py executable and run it
>
>  
>
> How do I complete the install
>
>  
>
> Thanks for any information
>

-- 
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/cff5db9f-c298-434c-9d80-4f92bb3b73bf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: sds011 install

2019-06-27 Thread vigilancewx
Hi

When you run the wee_config --reconfigure


it lists the normal question about weewx but no reference to the new sds011 
setup

so a couple more questions please 

I know my sds011 is connected tn port USB02 so do I need to modify 
sds011.py ?

will it now create the pm.sdb in the weewx archive folder ?

also the service section under the weewx engine is not modified what do I 
need to add here?


thanks for the information


On Wednesday, June 26, 2019 at 11:02:53 PM UTC+1, vigilancewx wrote:

> Hi 
>
> I am trying to install the sds011 service 
>
> Installation
>
>  
>
> 0) Install weeWX (see weewx.com for details)
>
>  
>
> 1) Download the SDS011 extension
>
>  
>
> wget -O weewx-sds011.zip 
> *https://github.com/matthewwall/weewx-sds011/archive/master.zip* 
> <https://github.com/matthewwall/weewx-sds011/archive/master.zip>
>
>  
>
> 2) Install the extension
>
>  
>
> wee_extension --install weewx-sds011.zip
>
>  
>
> 3) Configure the driver
>
>  
>
> wee_config --reconfigure
>
>  
>
> 4) start weewx
>
>  
>
> sudo /etc/init.d/weewx start
>
>  
>
> followed the above all it seems to do is install the install.py to
>
>  
>
> user/installer/sds011 directory
>
>  
>
>  
>
>  
>
> and sds011.py to the bin/user directory
>
>  
>
> adding this to the Weewx.conf
>
>  
>
>  
>
> #
>
>  
>
> # Options for extension 'sds011'
>
> [SDS011]
>
>  
>
> ##
>
>  
>
> Do I make the install.py executable and run it
>
>  
>
> How do I complete the install
>
>  
>
> Thanks for any information
>

-- 
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/df897502-a2ff-4664-9996-a4937d66c75a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] sds011 install

2019-06-26 Thread vigilancewx
 

Hi 

I am trying to install the sds011 service 

Installation

 

0) Install weeWX (see weewx.com for details)

 

1) Download the SDS011 extension

 

wget -O weewx-sds011.zip 
*https://github.com/matthewwall/weewx-sds011/archive/master.zip* 


 

2) Install the extension

 

wee_extension --install weewx-sds011.zip

 

3) Configure the driver

 

wee_config --reconfigure

 

4) start weewx

 

sudo /etc/init.d/weewx start

 

followed the above all it seems to do is install the install.py to

 

user/installer/sds011 directory

 

 

 

and sds011.py to the bin/user directory

 

adding this to the Weewx.conf

 

 

#

 

# Options for extension 'sds011'

[SDS011]

 

##

 

Do I make the install.py executable and run it

 

How do I complete the install

 

Thanks for any information

-- 
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/26b8d1cf-5467-4392-837c-48e1f1416e38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: forecast data shown in template

2019-04-14 Thread vigilancewx
Multiple bindings

thanks



On Sunday, April 14, 2019 at 10:39:48 AM UTC+1, vigilancewx wrote:

> Hello
>
>  
>
> In the forecast database UKMO displays a UV valve
>
> How can I display that in template?
>
>  
>
> I know how to save additional data to the Weewx database and can display 
> it in a template, but the forecast data is in a separate database how do I 
> display data stored here in say the index template
>
>  
>
>  
>
>  
>
>  
>
> Thankyou for any help
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] forecast data shown in template

2019-04-14 Thread vigilancewx
 

Hello

 

In the forecast database UKMO displays a UV valve

How can I display that in template?

 

I know how to save additional data to the Weewx database and can display it 
in a template, but the forecast data is in a separate database how do I 
display data stored here in say the index template

 

 

 

 

Thankyou for any help

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Unit conversion options

2018-04-13 Thread vigilancewx
Thank you for the informative reply

i suppose the solution is to add 9/5 +32 to my parsing extension to log the 
reading as F'

one thing that iam not sure is why i cannot alter the readings under

[StdCalibrate]

[[Corrections]]
# For each type, an arbitrary calibration expression can be given.
# It should be in the units defined in the StdConvert section.
# Example:
foo = foo + 0.2


cctemp = cctemp *1.8

extraTemp7 = extraTemp7 + 10

the cctemp is logged with my extension ok i will modify it
but the extraTemp7 is logged with the 1wire extension that 's freely 
available from weewx


trying to add 10 to extraTemp7  has no effect on what is displayed on the 
html pages

strange?




On Thursday, April 12, 2018 at 9:34:22 PM UTC+1, vigilancewx wrote:
>
> hi
>
> I normally run weewx with a vantage and a few 1 wire sensors
>
> standardreport units are set to metric
>
> but the target units in weewx.conf set to US
># DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
> target_unit = US# Options are 'US', 'METRICWX', or 'METRIC'
>
>
>
> all temperatures and other readings displayed on the html pages as they 
> should be
>
> I have tried to create my own extension to read my electricity meter and 
> it should work (this version is in simulator mode just now) 
>
> the current sensor collects the power and temp readings to a txt file and 
> my extension imports it in to weewx.sdb
> the imported power readings are in watts however the temperature is in C'
>
> Checking the weewxsdb all the temp readings are stored in F and then 
> displayed on the html pages in C'
>
> this particular reading cctemp is being parsed and stored in weewx.sdb as 
> deg C so when its shown on the html pages its incorrect  
>
> i have tried to convert it back to 'C under stdcalibrate/corrections but 
> it has no effect?
>
>
> is it possible to display this temperature back to 'C
>
> Unit conversion options 
>
> The tag optional_unit_conversion can be used with either current 
> observations or aggregations. If supplied, the results will be converted to 
> the specified units. For example, if you have set group_pressure to 
> inches of mercury (inHg), then the tag 
>
> Today's average pressure=$day.barometer.avg 
>
> would normally give a result such as
>
> Today's average pressure=30.05 inHg 
>
> However, if you add mbar to the end, 
>
> $day.barometer.avg.mbar 
>
> then the results will be in millibars:
>
>
> i have tried to convert with the above but unsure how to implement it
>
>
> thanks for any advice
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Unit conversion options

2018-04-12 Thread vigilancewx
hi

I normally run weewx with a vantage and a few 1 wire sensors

standardreport units are set to metric

but the target units in weewx.conf set to US
   # DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!
target_unit = US# Options are 'US', 'METRICWX', or 'METRIC'



all temperatures and other readings displayed on the html pages as they 
should be

I have tried to create my own extension to read my electricity meter and it 
should work (this version is in simulator mode just now) 

the current sensor collects the power and temp readings to a txt file and 
my extension imports it in to weewx.sdb
the imported power readings are in watts however the temperature is in C'

Checking the weewxsdb all the temp readings are stored in F and then 
displayed on the html pages in C'

this particular reading cctemp is being parsed and stored in weewx.sdb as 
deg C so when its shown on the html pages its incorrect  

i have tried to convert it back to 'C under stdcalibrate/corrections but it 
has no effect?


is it possible to display this temperature back to 'C

Unit conversion options 

The tag optional_unit_conversion can be used with either current 
observations or aggregations. If supplied, the results will be converted to 
the specified units. For example, if you have set group_pressure to inches 
of mercury (inHg), then the tag 

Today's average pressure=$day.barometer.avg 

would normally give a result such as

Today's average pressure=30.05 inHg 

However, if you add mbar to the end, 

$day.barometer.avg.mbar 

then the results will be in millibars:


i have tried to convert with the above but unsure how to implement it


thanks for any advice

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Pond.py multi senor watt and temp

2018-04-09 Thread vigilancewx
It was the line length

i had entered a numerical value but the wrong value its working now thanks 
for your help


concentrating of the indentation and syntax i should put more thought into 
the whole thing

thanks again


On Saturday, April 7, 2018 at 9:51:39 PM UTC+1, vigilancewx wrote:
>
> Hello
>
>
> I have a current cost electricity meter connect to a linux computer via a 
> usb cable
>
> On the linux computer is a script that every 20seconds loggs the watt and 
> temp readings from the current cost meter to a txt file and RRD file
>
>
> I can generate the RRD graphs into the weewx public_html directory and 
> display them accrodingly
>
>
> I know that weewx is predominatly for displaying weather data but I would 
> like weewx to handle the watt data, so I have tried to save the readings 
> into the weewx.sdb 
>
>
> I found this version of pond.py from the weewx user groups and it works 
> with no errors
>
>
>
> Following advice given in the weewx help files I can now display the data 
> in the various html files display graphs etc
>
>
> I have one problem, pond.py takes the readings from the first line in the 
> txt file (readings.txt)
>
>
> how do I modify pond.py to take its readings from the last line of the txt 
> file, because file the last line of my txt file holds the latest data
>
>
> thank you for any help
>
>
> import syslog
>
> import weewx
>
> from weewx.wxengine import StdService
>
>
> class PondService(StdService):
>
> def __init__(self, engine, config_dict):
>
> super(PondService, self).__init__(engine, config_dict)
>
> d = config_dict.get('PondService', {})
>
> self.filename = d.get('filename', '/var/www/html/data/reading.txt')
>
> syslog.syslog(syslog.LOG_INFO, "pond: using %s" % self.filename)
>
> self.bind(weewx.NEW_ARCHIVE_RECORD, self.read_file)
>
>
> def read_file(self, event):
>
> try:
>
> with open(self.filename) as f:
>
> #value = f.read()
>
> line = f.readline()
>
> value = line.split(',')
>
> syslog.syslog(syslog.LOG_DEBUG, "pond: found value of %s" % value)
>
> event.record['ccwatt'] = float(value[0])
>
> event.record['cctemp'] = float(value[1])
>
> except Exception, e:
>
> syslog.syslog(syslog.LOG_ERR, "pond: cannot read value: %s" % e)
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Pond.py multi senor watt and temp

2018-04-08 Thread vigilancewx
Thanks for your input Andrew

your additional comments have removed the indentation errors but for some 
reason weewx.sbd has stopped being populated by pond.py and the modified 
lines

but again thanks

  

On Saturday, April 7, 2018 at 9:51:39 PM UTC+1, vigilancewx wrote:
>
> Hello
>
>
> I have a current cost electricity meter connect to a linux computer via a 
> usb cable
>
> On the linux computer is a script that every 20seconds loggs the watt and 
> temp readings from the current cost meter to a txt file and RRD file
>
>
> I can generate the RRD graphs into the weewx public_html directory and 
> display them accrodingly
>
>
> I know that weewx is predominatly for displaying weather data but I would 
> like weewx to handle the watt data, so I have tried to save the readings 
> into the weewx.sdb 
>
>
> I found this version of pond.py from the weewx user groups and it works 
> with no errors
>
>
>
> Following advice given in the weewx help files I can now display the data 
> in the various html files display graphs etc
>
>
> I have one problem, pond.py takes the readings from the first line in the 
> txt file (readings.txt)
>
>
> how do I modify pond.py to take its readings from the last line of the txt 
> file, because file the last line of my txt file holds the latest data
>
>
> thank you for any help
>
>
> import syslog
>
> import weewx
>
> from weewx.wxengine import StdService
>
>
> class PondService(StdService):
>
> def __init__(self, engine, config_dict):
>
> super(PondService, self).__init__(engine, config_dict)
>
> d = config_dict.get('PondService', {})
>
> self.filename = d.get('filename', '/var/www/html/data/reading.txt')
>
> syslog.syslog(syslog.LOG_INFO, "pond: using %s" % self.filename)
>
> self.bind(weewx.NEW_ARCHIVE_RECORD, self.read_file)
>
>
> def read_file(self, event):
>
> try:
>
> with open(self.filename) as f:
>
> #value = f.read()
>
> line = f.readline()
>
> value = line.split(',')
>
> syslog.syslog(syslog.LOG_DEBUG, "pond: found value of %s" % value)
>
> event.record['ccwatt'] = float(value[0])
>
> event.record['cctemp'] = float(value[1])
>
> except Exception, e:
>
> syslog.syslog(syslog.LOG_ERR, "pond: cannot read value: %s" % e)
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Pond.py multi senor watt and temp

2018-04-08 Thread vigilancewx
Thank you for your reply Andrew

i assume its my error on how i have tried to make the changes to pond py
now its is generating this error

Apr  8 13:23:37 pi-X2 OWFS[21349]:   
self.loadServices(config_dict)
Apr  8 13:23:37 pi-X2 OWFS[21349]: File 
"/home/weewx/bin/weewx/engine.py", line 141, in loadServices
Apr  8 13:23:37 pi-X2 OWFS[21349]:   
self.service_obj.append(weeutil.weeutil._get_object(svc)(self, config_dict))
Apr  8 13:23:37 pi-X2 OWFS[21349]: File 
"/home/weewx/bin/weeutil/weeutil.py", line 1132, in _get_object
Apr  8 13:23:37 pi-X2 OWFS[21349]:   mod = __import__(module)
Apr  8 13:23:37 pi-X2 OWFS[21349]: File 
"/home/weewx/bin/user/pond.py", line 24
Apr  8 13:23:37 pi-X2 OWFS[21349]:   value = line.split(',')
Apr  8 13:23:37 pi-X2 OWFS[21349]: ^
Apr  8 13:23:37 pi-X2 OWFS[21349]:   IndentationError: unindent 
does not match any outer indentation level
Apr  8 13:23:37 pi-X2 OWFS[21349]:   Exiting.


I have tried to alter pond.py as follows obviously incorrectly could you 
define were please

thanks

import syslog
import weewx
from weewx.wxengine import StdService

class PondService(StdService):
def __init__(self, engine, config_dict):
super(PondService, self).__init__(engine, config_dict)
d = config_dict.get('PondService', {})
self.filename = d.get('filename', '/var/www/html/data/reading.txt')
syslog.syslog(syslog.LOG_INFO, "pond: using %s" % self.filename)
self.bind(weewx.NEW_ARCHIVE_RECORD, self.read_file)

def read_file(self, event):
try:
with open(self.filename) as f:
#value = f.read()
###line = f.readline()

f.seek(-max_line_length, os.SEEK_END)
line = f.readline()[-1]

value = line.split(',')
syslog.syslog(syslog.LOG_DEBUG, "pond: found value of %s" % 
value)
event.record['ccwatt'] = float(value[0])
event.record['cctemp'] = float(value[1])
except Exception, e:
syslog.syslog(syslog.LOG_ERR, "pond: cannot read value: %s" % e)







On Saturday, April 7, 2018 at 9:51:39 PM UTC+1, vigilancewx wrote:
>
> Hello
>
>
> I have a current cost electricity meter connect to a linux computer via a 
> usb cable
>
> On the linux computer is a script that every 20seconds loggs the watt and 
> temp readings from the current cost meter to a txt file and RRD file
>
>
> I can generate the RRD graphs into the weewx public_html directory and 
> display them accrodingly
>
>
> I know that weewx is predominatly for displaying weather data but I would 
> like weewx to handle the watt data, so I have tried to save the readings 
> into the weewx.sdb 
>
>
> I found this version of pond.py from the weewx user groups and it works 
> with no errors
>
>
>
> Following advice given in the weewx help files I can now display the data 
> in the various html files display graphs etc
>
>
> I have one problem, pond.py takes the readings from the first line in the 
> txt file (readings.txt)
>
>
> how do I modify pond.py to take its readings from the last line of the txt 
> file, because file the last line of my txt file holds the latest data
>
>
> thank you for any help
>
>
> import syslog
>
> import weewx
>
> from weewx.wxengine import StdService
>
>
> class PondService(StdService):
>
> def __init__(self, engine, config_dict):
>
> super(PondService, self).__init__(engine, config_dict)
>
> d = config_dict.get('PondService', {})
>
> self.filename = d.get('filename', '/var/www/html/data/reading.txt')
>
> syslog.syslog(syslog.LOG_INFO, "pond: using %s" % self.filename)
>
> self.bind(weewx.NEW_ARCHIVE_RECORD, self.read_file)
>
>
> def read_file(self, event):
>
> try:
>
> with open(self.filename) as f:
>
> #value = f.read()
>
> line = f.readline()
>
> value = line.split(',')
>
> syslog.syslog(syslog.LOG_DEBUG, "pond: found value of %s" % value)
>
> event.record['ccwatt'] = float(value[0])
>
> event.record['cctemp'] = float(value[1])
>
> except Exception, e:
>
> syslog.syslog(syslog.LOG_ERR, "pond: cannot read value: %s" % e)
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Pond.py multi senor watt and temp

2018-04-07 Thread vigilancewx
 

Hello


I have a current cost electricity meter connect to a linux computer via a 
usb cable

On the linux computer is a script that every 20seconds loggs the watt and 
temp readings from the current cost meter to a txt file and RRD file


I can generate the RRD graphs into the weewx public_html directory and 
display them accrodingly


I know that weewx is predominatly for displaying weather data but I would 
like weewx to handle the watt data, so I have tried to save the readings 
into the weewx.sdb 


I found this version of pond.py from the weewx user groups and it works 
with no errors



Following advice given in the weewx help files I can now display the data 
in the various html files display graphs etc


I have one problem, pond.py takes the readings from the first line in the 
txt file (readings.txt)


how do I modify pond.py to take its readings from the last line of the txt 
file, because file the last line of my txt file holds the latest data


thank you for any help


import syslog

import weewx

from weewx.wxengine import StdService


class PondService(StdService):

def __init__(self, engine, config_dict):

super(PondService, self).__init__(engine, config_dict)

d = config_dict.get('PondService', {})

self.filename = d.get('filename', '/var/www/html/data/reading.txt')

syslog.syslog(syslog.LOG_INFO, "pond: using %s" % self.filename)

self.bind(weewx.NEW_ARCHIVE_RECORD, self.read_file)


def read_file(self, event):

try:

with open(self.filename) as f:

#value = f.read()

line = f.readline()

value = line.split(',')

syslog.syslog(syslog.LOG_DEBUG, "pond: found value of %s" % value)

event.record['ccwatt'] = float(value[0])

event.record['cctemp'] = float(value[1])

except Exception, e:

syslog.syslog(syslog.LOG_ERR, "pond: cannot read value: %s" % e)

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Forecast and icons

2018-02-14 Thread vigilancewx


cp -rp skins/forecast/icons skins/Standard

Then include the icons in the list of files that should be copied by the 
CopyGenerator. Append the icons directory to the copy_once parameter in the 
CopyGenerator configuration in skins/Standard/skin.conf:

[CopyGenerator]
copy_once = ..., icons/*.png


added the above and all is working



On Wednesday, February 14, 2018 at 10:49:02 PM UTC, vigilancewx wrote:
>
> Hi
>
>
> on a new 3.8 installation
>
>
> I have installed the forecast extension and it works fine in its default 
> installation folder
>
>
> I have changed my skin.conf to no generatre the single-strip.html file in 
> my public_html folder
>
>
> the file it is generating has all the temps etc also the colours and 
> correct fonts but no icons
>
>
> where do I create a link so the single-strip.html file has link to the 
> icons when it is generated into the public_html folder
>
>
> I did try to create a button with a link to the default forecast folder to 
> get around the problem but apache seems to prevent the link from opening
>
>
> the only folder apache will allow access to is my public_html hence the 
> reason I am trying to get the file generated
>
> in the public folder
>
>
> thanks for any advice
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Forecast and icons

2018-02-14 Thread vigilancewx


I have found this on an older post

cp -rp skins/forecast/icons skins/Standard

i had already tried to copy the icons to an icons sub folder of Standard
 as that is where the icons  reside in an older version of weewx

i only use the cp command i will try with the above txt see what happens




On Wednesday, February 14, 2018 at 10:49:02 PM UTC, vigilancewx wrote:
>
> Hi
>
>
> on a new 3.8 installation
>
>
> I have installed the forecast extension and it works fine in its default 
> installation folder
>
>
> I have changed my skin.conf to no generatre the single-strip.html file in 
> my public_html folder
>
>
> the file it is generating has all the temps etc also the colours and 
> correct fonts but no icons
>
>
> where do I create a link so the single-strip.html file has link to the 
> icons when it is generated into the public_html folder
>
>
> I did try to create a button with a link to the default forecast folder to 
> get around the problem but apache seems to prevent the link from opening
>
>
> the only folder apache will allow access to is my public_html hence the 
> reason I am trying to get the file generated
>
> in the public folder
>
>
> thanks for any advice
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Forecast and icons

2018-02-14 Thread vigilancewx
 

Hi


on a new 3.8 installation


I have installed the forecast extension and it works fine in its default 
installation folder


I have changed my skin.conf to no generatre the single-strip.html file in 
my public_html folder


the file it is generating has all the temps etc also the colours and 
correct fonts but no icons


where do I create a link so the single-strip.html file has link to the 
icons when it is generated into the public_html folder


I did try to create a button with a link to the default forecast folder to 
get around the problem but apache seems to prevent the link from opening


the only folder apache will allow access to is my public_html hence the 
reason I am trying to get the file generated

in the public folder


thanks for any advice


-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Importing database weewx 2.6 into weewx 3.8

2018-02-08 Thread vigilancewx
 

Hi

I have a pi running weewx 2.6 with about 3 years worth of data taken from 
my Vantage station


I have recently installed weewx 3.8.0 on a shuttle pc running in simulator 
mode. I also installed using the wee extention utility the forcast and cmon 
sevices and owfss


The Pi has 4 extra 1 wire senors that I added to weewx 2.6


How do I import the database from weewx 2.6 into weewx 3.8. 

I have added the 4 extraTemp readings manually then 


wee_database weewx.conf –reconfiguremv 

weewx.sdb_new weewx.sdb


How do I import the database from weewx 2.6 into weewx 3.8. 


I have 2 databases  1 formed by the schemas/wview.py in weewx 3.8

and the other formed by the database and schema used in weewx 2.6


can it be done?


thanks for any advice

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Xtide forecasting units US/Metric

2018-02-06 Thread vigilancewx
Thanks for the help

but i had only just installed weewx the forecast was the first extension i 
was trying to add

i uninstalled it reinstalled it and all units are correct

dont know why but its running ok

once again thanks for the help



On Monday, February 5, 2018 at 10:41:40 PM UTC, vigilancewx wrote:
>
> Hi
>
>
> I have install weewx 3.8
>
>
> I am running it in simulator mode while testing 
>
>
> The graphs and temps that are shown within the public_html directory are 
> in metric units as per weewx.conf
>
>
> I have instaled xtide and when testing it from the command line interface 
> the HI low tides are shown in meters
>
>
> I have installed the forecast module with an API from the UK metoffice and 
> WU
>
>
> the forecasts displayed (weather and tides ) in the index.html with the 
> public_html/forcecast/ directory are shown in US units
>
>
> do I need to configure the forecast.py or skin to enable the metric units
>
>
> weewx is showning the correct metric units
>
> the forcast extension is shown US units??
>
>
> thanks for any help
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Xtide forecasting units US/Metric

2018-02-06 Thread vigilancewx
 

Hi


If understand this correctly this snippet from my weex.conf


[[forecast]]

HTML_ROOT = public_html/forecast

skin = forecast


will create an index file in the folder public_html/forecast

and use the skn from the forecast directory


Uncomment here or override in weewx.conf to display other units

#[Units]

# [[Groups]]

group_altitude = meter

group_degree_day = degree_C_day

group_pressure = mbar

group_radiation = watt_per_meter_squared

group_rain = mm

group_rainrate = mm_per_hour

group_speed = meter_per_second

group_speed2 = meter_per_second2

group_temperature = degree_C



my standard skin also has the following

[Units]

# This section is for managing the selection and formatting of units.

[[Groups]]

# For each group of measurements, this section sets what units to

# use for it.

# NB: The unit is always in the singular. I.e., 'mile_per_hour',

# NOT 'miles_per_hour'


group_altitude = meter # Options are 'foot' or 'meter'

group_degree_day = degree_c_day # Options are 'degree_F_day' or 
'degree_C_day'

group_direction = degree_compass

group_moisture = centibar

group_percent = percent

group_pressure = mbar # Options are 'inHg', 'mmHg', 'mbar', or 'hPa'

group_radiation = watt_per_meter_squared

group_rain = mm # Options are 'inch', 'cm', or 'mm'

group_rainrate = mm_per_hour # Options are 'inch_per_hour', 'cm_per_hour', 
or 'mm_per_hour'

group_speed = mile_per_hour # Options are 'mile_per_hour', 'km_per_hour', 
'knot', or 'meter_per_second'

group_speed2 = mile_per_hour2 # Options are 'mile_per_hour2', 
'km_per_hour2', 'knot2', or 'meter_per_second2'

group_temperature = degree_c # Options are 'degree_F' or 'degree_C'

group_uv = uv_index

group_volt = volt


# The following are used internally and should not be changed:

group_count = count

group_interval = minute

group_time = unix_epoch

group_elapsed = second


[[StringFormats]]




and finally in my weewx.conf



[[StandardReport]]

# See the customizing guide to change the units, plot types and line

# colors, modify the fonts, display additional sensor data, and other

# customizations. Many of those changes can be made here by overriding

# parameters, or by modifying templates within the skin itself.

# The StandardReport uses the 'Standard' skin, which contains the

# images, templates and plots for the report.

skin = Standard

[[[Units]]]

Groups

group_altitude = meter

group_speed2 = meter_per_second2

group_pressure = mbar

group_rain = mm

group_rainrate = mm_per_hour

group_temperature = degree_C

group_degree_day = degree_C_day

group_speed = meter_per_second

[[cmon]]

HTML_ROOT = public_html/cmon

skin = cmon



so I believe I have it configure correctly to display metric units in my 
forecast html




so i am unsure why i get feet and deg F in my forecast index_html







On Monday, February 5, 2018 at 10:41:40 PM UTC, vigilancewx wrote:
>
> Hi
>
>
> I have install weewx 3.8
>
>
> I am running it in simulator mode while testing 
>
>
> The graphs and temps that are shown within the public_html directory are 
> in metric units as per weewx.conf
>
>
> I have instaled xtide and when testing it from the command line interface 
> the HI low tides are shown in meters
>
>
> I have installed the forecast module with an API from the UK metoffice and 
> WU
>
>
> the forecasts displayed (weather and tides ) in the index.html with the 
> public_html/forcecast/ directory are shown in US units
>
>
> do I need to configure the forecast.py or skin to enable the metric units
>
>
> weewx is showning the correct metric units
>
> the forcast extension is shown US units??
>
>
> thanks for any help
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Xtide forecasting units US/Metric

2018-02-05 Thread vigilancewx
 

Hi


I have install weewx 3.8


I am running it in simulator mode while testing 


The graphs and temps that are shown within the public_html directory are in 
metric units as per weewx.conf


I have instaled xtide and when testing it from the command line interface 
the HI low tides are shown in meters


I have installed the forecast module with an API from the UK metoffice and 
WU


the forecasts displayed (weather and tides ) in the index.html with the 
public_html/forcecast/ directory are shown in US units


do I need to configure the forecast.py or skin to enable the metric units


weewx is showning the correct metric units

the forcast extension is shown US units??


thanks for any help

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: 2.6 going to 3.8 and wee_extension

2018-02-04 Thread vigilancewx
Hi

Yes its a little drastic

But several hours worth of customizing something else may be problematic

Originally i had installed the latest weewx 3.8 using the new automated 
installation package but i was unfamiliar with the new directory structure 
so i un-installed it and used to older setup method

something maybe crossed linked

upon reinstalling everything is working ok (so far) :-)

thanks for your help



On Sunday, February 4, 2018 at 3:56:02 PM UTC, vigilancewx wrote:
>
> Hello I have been using weewx for a few years version 2.6 on a PI and it 
> works fine (changing in and out of GMT causes the pi to play up but thats 
> all)  no problems with the SD cards etc
> However i  decided to install the latest version 3.8 on a machine running 
> Ubuntu 17
>
> I have modified my 2.6 quite extensively so doing a clean install and 
> trying to migrate my mods over if possible
>
> i am unable to get wee_extension to install i have tried on the forecast 
> extension and cmon
>
> i cant remember how to install the extensions from a few years ago  and 
> using wee_extension i get the following errors
>
> Thanks for any help
>
> pi@picomp:/home/myideas$ dir
> abcweewx.tgz  home   weewx-forecast-3.2.19.tgz
> abweewx.tgz   weewx-cmon-0.16.tgz  weewx-owfs-0.21.tgz
> pi@picomp:/home/myideas$ sudo /home/weewx/bin/wee_extension 
> /home/myideas/weewx-cmon-0.16.tgz
> Traceback (most recent call last):
>   File "/home/weewx/bin/wee_extension", line 83, in 
> main()
>   File "/home/weewx/bin/wee_extension", line 62, in main
> config_path, config_dict = weecfg.read_config(options.config, _args)
>   File "/home/weewx/bin/weecfg/__init__.py", line 223, in read_config
> config_dict = configobj.ConfigObj(config_path, file_error=True)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in 
> __init__
> self._load(infile, configspec)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
> raise error
> configobj.ConfigObjError: Parsing failed with several errors.
> First error at line 1.
> pi@picomp:/home/myideas$ sudo /home/weewx/bin/wee_extension 
> /home/myideas/weewx-forecast-3.2.19.tgz
> Traceback (most recent call last):
>   File "/home/weewx/bin/wee_extension", line 83, in 
> main()
>   File "/home/weewx/bin/wee_extension", line 62, in main
> config_path, config_dict = weecfg.read_config(options.config, _args)
>   File "/home/weewx/bin/weecfg/__init__.py", line 223, in read_config
> config_dict = configobj.ConfigObj(config_path, file_error=True)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in 
> __init__
> self._load(infile, configspec)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
> raise error
> configobj.ConfigObjError: Parsing failed with several errors.
> First error at line 3.
> pi@picomp:/home/myideas$ 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: 2.6 going to 3.8 and wee_extension

2018-02-04 Thread vigilancewx
Hi

I will reinstall the Ubuntu
and reinstall weewx 

all fresh clean installations and try again 

thanks



On Sunday, February 4, 2018 at 3:56:02 PM UTC, vigilancewx wrote:
>
> Hello I have been using weewx for a few years version 2.6 on a PI and it 
> works fine (changing in and out of GMT causes the pi to play up but thats 
> all)  no problems with the SD cards etc
> However i  decided to install the latest version 3.8 on a machine running 
> Ubuntu 17
>
> I have modified my 2.6 quite extensively so doing a clean install and 
> trying to migrate my mods over if possible
>
> i am unable to get wee_extension to install i have tried on the forecast 
> extension and cmon
>
> i cant remember how to install the extensions from a few years ago  and 
> using wee_extension i get the following errors
>
> Thanks for any help
>
> pi@picomp:/home/myideas$ dir
> abcweewx.tgz  home   weewx-forecast-3.2.19.tgz
> abweewx.tgz   weewx-cmon-0.16.tgz  weewx-owfs-0.21.tgz
> pi@picomp:/home/myideas$ sudo /home/weewx/bin/wee_extension 
> /home/myideas/weewx-cmon-0.16.tgz
> Traceback (most recent call last):
>   File "/home/weewx/bin/wee_extension", line 83, in 
> main()
>   File "/home/weewx/bin/wee_extension", line 62, in main
> config_path, config_dict = weecfg.read_config(options.config, _args)
>   File "/home/weewx/bin/weecfg/__init__.py", line 223, in read_config
> config_dict = configobj.ConfigObj(config_path, file_error=True)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in 
> __init__
> self._load(infile, configspec)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
> raise error
> configobj.ConfigObjError: Parsing failed with several errors.
> First error at line 1.
> pi@picomp:/home/myideas$ sudo /home/weewx/bin/wee_extension 
> /home/myideas/weewx-forecast-3.2.19.tgz
> Traceback (most recent call last):
>   File "/home/weewx/bin/wee_extension", line 83, in 
> main()
>   File "/home/weewx/bin/wee_extension", line 62, in main
> config_path, config_dict = weecfg.read_config(options.config, _args)
>   File "/home/weewx/bin/weecfg/__init__.py", line 223, in read_config
> config_dict = configobj.ConfigObj(config_path, file_error=True)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in 
> __init__
> self._load(infile, configspec)
>   File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
> raise error
> configobj.ConfigObjError: Parsing failed with several errors.
> First error at line 3.
> pi@picomp:/home/myideas$ 
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] 2.6 going to 3.8 and wee_extension

2018-02-04 Thread vigilancewx
Hello I have been using weewx for a few years version 2.6 on a PI and it 
works fine (changing in and out of GMT causes the pi to play up but thats 
all)  no problems with the SD cards etc
However i  decided to install the latest version 3.8 on a machine running 
Ubuntu 17

I have modified my 2.6 quite extensively so doing a clean install and 
trying to migrate my mods over if possible

i am unable to get wee_extension to install i have tried on the forecast 
extension and cmon

i cant remember how to install the extensions from a few years ago  and 
using wee_extension i get the following errors

Thanks for any help

pi@picomp:/home/myideas$ dir
abcweewx.tgz  home   weewx-forecast-3.2.19.tgz
abweewx.tgz   weewx-cmon-0.16.tgz  weewx-owfs-0.21.tgz
pi@picomp:/home/myideas$ sudo /home/weewx/bin/wee_extension 
/home/myideas/weewx-cmon-0.16.tgz
Traceback (most recent call last):
  File "/home/weewx/bin/wee_extension", line 83, in 
main()
  File "/home/weewx/bin/wee_extension", line 62, in main
config_path, config_dict = weecfg.read_config(options.config, _args)
  File "/home/weewx/bin/weecfg/__init__.py", line 223, in read_config
config_dict = configobj.ConfigObj(config_path, file_error=True)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in 
__init__
self._load(infile, configspec)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 1.
pi@picomp:/home/myideas$ sudo /home/weewx/bin/wee_extension 
/home/myideas/weewx-forecast-3.2.19.tgz
Traceback (most recent call last):
  File "/home/weewx/bin/wee_extension", line 83, in 
main()
  File "/home/weewx/bin/wee_extension", line 62, in main
config_path, config_dict = weecfg.read_config(options.config, _args)
  File "/home/weewx/bin/weecfg/__init__.py", line 223, in read_config
config_dict = configobj.ConfigObj(config_path, file_error=True)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1229, in 
__init__
self._load(infile, configspec)
  File "/usr/lib/python2.7/dist-packages/configobj.py", line 1318, in _load
raise error
configobj.ConfigObjError: Parsing failed with several errors.
First error at line 3.
pi@picomp:/home/myideas$ 

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Weather station autistic child

2016-11-10 Thread vigilancewx
 

Hi

I know this maybe slightly off topic but I am after a little bit of advice

I have been a member of this group for a few years and have all ways found 
it to be very helpful and courteous

I am looking to buy a weather station for my niece who is slightly 
autistic, and has developed an interest in weather and collecting data.

My weather station is a Davis unit connected to a pi and logged with Weewx.  


That is not what she would like. She would rather collect the data manually 
and log it daily. 

Now there are a numerous different weather stations out there.  I am 
looking for any advice what to buy. 

It will be kept at her local school so something that is reasonable accurate

I did think of a wireless Davis unit and base station with no software, but 
with the UV sensors its quite expensive

 

Does anybody have any advice? 

 

Thanks in advance

-- 
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.
For more options, visit https://groups.google.com/d/optout.