An open API service indexing awesome lists of open source software.

https://github.com/marekhakala/temperaturehub

The python application for downloading values from internet weather stations.
https://github.com/marekhakala/temperaturehub

css html lxml magic python3 python3-application sqlite3 weather-station xslt

Last synced: 10 months ago
JSON representation

The python application for downloading values from internet weather stations.

Awesome Lists containing this project

README

          

# Temperature HUB v1.0.0 (XML API)

![Temperature HUB Logo](Screenshots/temperaturehub.png)

The Temperature HUB is an application for collecting temperature and humidity values from internet weather stations. The application is written in Python3 and includes HTTP server, which provides data presentation in a web browser with XSLT transformation for a better user experience.

[Screenshots](Screenshots/)

## API

* `/` - List of weather stations and current values
* `/history` - List of measured values

# Setup

Clone this repository and after install required packages for your operation system.

`git clone https://github.com/marekhakala/temperaturehub.git`

## Requirements

* Python 3.5+
* Python 3 Lxml 3.5.0+
* Python 3 Magic
* SQLite3

## Installation

### Mac OS X / macOS

* `brew install libxml2`
* `brew install imagemagick`
* `brew install libmagic`
* `brew install python3`

* `pip3 install lxml`
* `pip3 install magic`

### Linux - Debian/Ubuntu

* `aptitude install python3`
* `aptitude install python3-pip`
* `aptitude install libxml2-dev libxslt1-dev python-dev`
* `aptitude install python3-lxml`
* `aptitude install python3-magic`

## Configuration (config.xml)

```xml


0.0.0.0
8000

./measurement.db
./hts.log
./assets/
5
10
50
10


127.0.0.1
9000


127.0.0.1
9001


```

## Run

* `python3 ./server.py`

# License - Apache License, Version 2.0

```
# (C) Copyright 2015 by Marek Hakala
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
```