Skip to content

e-s-l/metserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README

About

This is a rewrite of JMc's py2 version of the original metserver.c program.

Mainly, motivated by updating to py3 but modified to include logger, lots of try catch clauses and raised exceptions (probably an unnecessary amount of them), and the probable adoption of a networked serial-to-ethernet convertor.

Now also requires an external configuration file (config.py).

All the original code is under the metserver-orginal directory.

Project

Files:

metserver.py, config.py, requirements.txt, metserver.service, README.md...

Set-up

Some preliminaries:

$ sudo apt upgrade
$ sudo apt-get install python3-venv

Also, just in case:

$ sudo apt-get install python3-pip 

Set-up the virtual environment

Coz' can't bREak SySTem paCkAges...

$ python3 -m venv venv
$ source venv/bin/activate
(venv) $ pip install -r requirements.txt

Set-up the system service

$ sudo cp metserver.service /etc/systemd/system/
$ sudo systemctl enable metserver.service
$ sudo systemctl start metserver.service

Check: sudo systemctl status metserver.service

And check the logs:

sudo journalctl -u metserver.service -f -n

About

meterological server for a met4 wx system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages