
Product
Introducing Scala and Kotlin Support in Socket
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
| For the moment, only cron.py works.
| The rest of this README file is not relevant.
| Please look into cron.py for explanations.
| Wait next releases to have full description.
|
| In one word :
|
| Install this software (For fedora)
| $ sudo dnf install python3-pip
| $ sudo dnf install mariadb-devel
| $ sudo dnf install gcc
| $ sudo dnf install redhat-rpm-config
| $ pip install wdwapp
|
| Download development.ini file from : https://static.frkb.fr/wdwapp
| Example. Do : wget https://static.frkb.fr/wdwapp/development.ini
|
| Adapt this file for your need.
|
| Create a database (empty) for this app.
| In phpMyAdmin for exemple you can do :
| CREATE USER 'wdwapp'@'localhost' IDENTIFIED BY 'my secret password';
| GRANT USAGE ON . TO 'wdwapp'@'localhost' REQUIRE NONE WITH
| MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0
| MAX_USER_CONNECTIONS 0;CREATE DATABASE IF NOT EXISTS wdwapp
;GRANT ALL
| PRIVILEGES ON wdwapp
.* TO 'wdwapp'@'localhost';
|
| Create tables :
| $ wdwapp_initialize_db development.ini
|
| Put in a cron job this command :
| $ wdwapp_cron /path/to/development.ini
|
| Because by default data is saved every 15 minutes, it is a good idea to call
| the cron job 3 minutes after. This mean every hour at 3, 18, 33 and 48 minute.
| To do tis with con insert this line in the crontab :
| 3,18,33,48 * * * * wdwapp_cron /path/to/development.ini
|
| Start web server :
| $ gunicorn --paste development.ini
DO NOT USE the rest of this file =============================================
Change directory into your newly created project::
cd meteoweb
Create a Python virtual environment::
python3 -m venv env
Upgrade packaging tools::
env/bin/pip install --upgrade pip setuptools
Install the project in editable mode with its testing requirements::
env/bin/pip install -e ".[testing]"
Run your project's tests::
env/bin/pytest
Download ini files::
wget http://static.frkb.fr/wdwapp/development.ini wget http://static.frkb.fr/wdwapp/production.ini
Adapt domaines
entry in [app:main]
section from ini file
see on https://api.ovh.com/ how to obtain keys.
Or go directly to https://api.ovh.com/createToken/index.cgi
Run your project::
env/bin/pserve development.ini or env/bin/pserve production.ini
Acces your project:
Retrieve weather data using a cron job.
| Get the URL http://localhost:6543/cron every 15 minutes. | The best way is to add the following line in a crontab :
*/15 * * * * wget -q -O /dev/null http://dev.local:6543/cron
| Replace dev.local:6543 with your domain if you have one. | The interval used to call this service determine the data interval.
0.1.4 2021/10/18
0.1.3 2021/10/16
0.1.0 2021/10/15
0.0.8 2018/02/28
Corrections :
0.0.7 2017/12/28
0.0.6 2017/12/26
0.0.4 2017/12/25
0.0.3 2017/12/22
0.0.1 2017/12/21
First version.
FAQs
Webapps for recording and displaying weather data
We found that wdwapp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.
Application Security
/Security News
Socket CEO Feross Aboukhadijeh and a16z partner Joel de la Garza discuss vibe coding, AI-driven software development, and how the rise of LLMs, despite their risks, still points toward a more secure and innovative future.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.