Skip to content

mingl0280/ReplaceWeatherCloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Personal Weather Station Site

Summary

This is a replacement for the weathercloud online service. You can set up locally.

This website is not for commercial use.

I used fastapi/uvicorn to run the backend, vue.js/echarts-vue/echarts.js/bootstrap to run the front end. There are some fonts included. They are not proposed for any commercial use. You may want to replace them if you don't want to use them.

How to use

  • You need an internal DNS server to intercept the API calls going out to weathercloud.net
  • You need a server with python and postgresql installed.
  • Windows instructions are not included but it can work.

For Ubuntu 20.04 dependency install:

apt install python3.8 python3-pip postgresql libpq-dev
update-alternatives --install /usr/bin/python python /usr/bin/python2.7 10 # if you have python 2.7
update-alternatives --install /usr/bin/python python /usr/bin/python3.6 20 # if you have python 3.6
update-alternatives --install /usr/bin/python python /usr/bin/python3.8 30
update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 10
update-alternatives --config python  # and then select python 3.8

Python packages install

pip install psycopg fastapi uvicorn

Database setup

  • You need a user called "weatherman" (or whatever you like - just remember to change the username in the config.yaml and create_db.py)
  • Run python create_db.py to create the data storage tabel.

Run the site

You have 2 options to run the website:

  1. run ./run.sh and it will default to listen on 0.0.0.0 at port 80.
  2. run python main.py and it should pull in configurations from config.yaml.

Other tasks to do

  • Not support switching between units. For example, Celsius to Fahrenheit or m/s to km/h to knots.
  • May need more language support

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published