dkalog / loggertodb

Insert meteorological station data to Enhydris using the web-api of enhydris

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

loggertodb

Coverage Documentation Status Updates

Insert meteorological station data to Enhydris using the webservice api

License

Free software: GNU General Public License v3

Documentation

https://loggertodb.readthedocs.io.

Creating a Windows executable

Note: You have to work on Windows 7. If you work on Windows 10, the resulting executable might not run on Windows 7. If you find a way to create the executable on Windows 10 that runs on Windows 7 (or stop supporting Windows 7), fix this README.

We've found that executables created on 64-bit Windows 7 do run on 32-bit Windows 7, however ideally the resulting executable should be tested in both environments.

The first time:

  1. Install git.
  2. (a) Install a recent Python 3 version. (b) Install virtualenv
  3. Execute Git Bash.
  4. Clone loggertodb
  5. Change to the working directory of loggertodb.
  6. pip install virtualenv==16.1.0 (this is because of a pyinstaller bug).
  7. virtualenv ..\venv
  8. ..\venv\Scripts\pip install -e .
  9. ..\venv\Scripts\pip install pyinstaller
  10. ..\venv\Scripts\python setup.py test
  11. ..\venv\Scripts\pyinstaller --onefile --name=loggertodb bin/loggertodb-windows

Next times:

  1. ..\venv\Scripts\pip install -e . (to upgrade dependencies if needed)
  2. ..\venv\Scripts\python setup.py test
  3. rm -r dist loggertodb.spec
  4. ..\venv\Scripts\pyinstaller --onefile --name=loggertodb bin/loggertodb-windows

After this, loggertodb.exe should be in the dist directory.

Creating a Windows executable via vagrant

Using this vagrant file Windows 7 (32bit) adapted to match vagrant's requirements where:

  • User is 'vagrant' (password 'vagrant')
  • WinRM is activated (for vagrant powershell)
  • RDP is activated (for vagrant rdp)
  • SSH is activated (for vagrant ssh)
  • chocolately is installed for easy unattended software installations
  • Windows Defender is disabled to avoid unnecessary load

Easy install on an vagrant

  1. Download from here.
  2. Unpack "IE11 - Win7.box" in ZIP-file to project directory
  3. rename box to IE11-Win7.box and run vagrant box add "file:///C:/path/to/file.box/IE11-Win7.box" --name IE11Win7
  4. run vagrant up (wait for timeout message!)
  5. run vagrant ssh
  6. choco install git

About

Insert meteorological station data to Enhydris using the web-api of enhydris

License:Other


Languages

Language:Python 100.0%