Content-Length: 319609 | pFad | http://github.com/sapegin-o1eg/weewx-rp5/commit/d8fdc1b2cc00a067ffe79adcef4af562c62687f4

F7 Uploads rate limit added · sapegin-o1eg/weewx-rp5@d8fdc1b · GitHub
Skip to content

Commit

Permalink
Uploads rate limit added
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin-o1eg committed Mar 26, 2019
1 parent 3500974 commit d8fdc1b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bin/user/rp5.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RP5Thread(weewx.restx.RESTThread):
"""Class for posting data via RP5 API"""

def __init__(self, queue, manager_dict, api_key, server_url,
protocol_name="Unknown-RESTful", post_interval=None,
protocol_name="Unknown-RESTful", post_interval=2,
max_backlog=sys.maxint, stale=None, log_success=True,
log_failure=True, timeout=5, max_tries=3, retry_wait=2,
skip_upload=False):
Expand Down
5 changes: 4 additions & 1 deletion changelog
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@ v0.2 29nov2018
* Temperature bug fixed

v0.3 02dec2018
* Now wind and wind gust data in m/s
* Now wind and wind gust data in m/s

v0.4 26mar2019
* Uploads rate limit added. RP5-API requires no more than 60 r/m
4 changes: 2 additions & 2 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def loader():
class RP5Installer(ExtensionInstaller):
def __init__(self):
super(RP5Installer, self).__init__(
version='0.3',
version='0.4',
name='rp5',
description='Upload archive data to rp5.ru',
author='Sapegin Oleg',
Expand All @@ -23,4 +23,4 @@ def __init__(self):
}
},
files=[('bin/user', ['bin/user/rp5.py'])]
)
)
8 changes: 4 additions & 4 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ weewx-rp5 - выгрузка данных на сайт rp5.ru. Далее Мо

Автоматическая установка с помощью wee_extension:
1. Загрузите последнюю версию Модуля https://github.com/sapegin-o1eg/weewx-rp5/releases
wget -P /tmp https://github.com/sapegin-o1eg/weewx-rp5/releases/download/v0.3/weewx-rp5-0.3.tar.gz
wget -P /tmp https://github.com/sapegin-o1eg/weewx-rp5/releases/download/v0.4/weewx-rp5-0.4.tar.gz

2. Остановите WeeWX
sudo /etc/init.d/weewx stop
Expand All @@ -28,7 +28,7 @@ weewx-rp5 - выгрузка данных на сайт rp5.ru. Далее Мо

3. Установите модуль используя утилиту wee_extension
cd /home/weewx/bin
./wee_extension --install=/tmp/weewx-rp5-0.3.tar.gz
./wee_extension --install=/tmp/weewx-rp5-0.4.tar.gz

4. Отредактируйте конфигурационный файл weewx.conf
vim /home/weewx/weewx.conf
Expand All @@ -53,15 +53,15 @@ weewx-rp5 - выгрузка данных на сайт rp5.ru. Далее Мо

Ручная установка:
1. Загрузите последнюю версию Модуля https://github.com/sapegin-o1eg/weewx-rp5/releases
wget -P /tmp https://github.com/sapegin-o1eg/weewx-rp5/releases/download/v0.3/weewx-rp5-0.3.tar.gz
wget -P /tmp https://github.com/sapegin-o1eg/weewx-rp5/releases/download/v0.4/weewx-rp5-0.4.tar.gz

2. Остановите WeeWX
sudo /etc/init.d/weewx stop
или
sudo service weewx stop

3. Распакуйте установочный файл
tar xvfz weewx-rp5-0.3.tar.gz
tar xvfz weewx-rp5-0.4.tar.gz

4. Скопируйте распакованные файлы
cp weewx-rp/bin/user/*.py /home/weewx/bin/user
Expand Down

0 comments on commit d8fdc1b

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/sapegin-o1eg/weewx-rp5/commit/d8fdc1b2cc00a067ffe79adcef4af562c62687f4

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy