Skip to content

Instantly share code, notes, and snippets.

View ski7777's full-sized avatar

Raphael Jacob ski7777

  • hartech Software GmbH
  • Saarwellingen, Germany
  • 13:10 (UTC +02:00)
View GitHub Profile
http://www.saarfahrplan.de/cgi-bin/ajax-getstop.exe/dny?start=1&tpl=suggest2json&REQ0JourneyStopsS0A=255&getstop=1&noSession=yes&REQ0JourneyStopsS0G=krankenhaus%20dillingen
Responds a JSON with the suggested stations
http://www.saarfahrplan.de/cgi-bin/query.exe/dn?OK#focus
with following POST data shows a html:
---Already analysed---
REQ0JourneyStopsS0A:255 #Type of Stop 255: everything, 1: Bus and Train, 2: Addrres, 4: POI
REQ0JourneyStopsS0G:Krankenhaus, Dillingen #Name of departure stop
REQ0JourneyStopsS0ID:A=1@O=Krankenhaus, Dillingen@X=6730287@Y=49355265@U=80@L=000041001@B=1@V=11.9,@p=0@ #just copy from search JSON
REQ0JourneyStopsZ0A:255 #Type of Stop 255: everything, 1: Bus and Train, 2: Addrres, 4: POI
{
"modules": {
"internet": {
"type": "internet_connectivity",
"properties": {
"ping": {
"servers": ["google.com", "8.8.8.8"],
"server_interval": 0.2,
"count": 3
},
{
"modules": {
"internet": {
"type": "internet_connectivity",
"properties": {
"ping": {
"servers": ["google.com", "8.8.8.8"],
"server_interval": 0.2,
"count": 3
},
#! /usr/bin/env python3
# -*- coding: utf-8 -*-
#
import sys
from TouchStyle import *
import time
import os
from _thread import start_new_thread
import zipfile
class UpdateThread(QThread):
new_line = pyqtSignal(str)
error = pyqtSignal(str)
def __init__(self, parent):
super(UpdateThread, self).__init__(parent)
def run(self):
print("Start")
>>> python-pygattlib 9eed59747bbafc3e9afba0db9f32c4f6efd54beb Downloading
--2017-03-01 17:08:43-- https://bitbucket.org/OscarAcena/pygattlib/get/9eed59747bbafc3e9afba0db9f32c4f6efd54beb.tar.gz
Auflösen des Hostnamen »bitbucket.org (bitbucket.org)«... 104.192.143.1, 104.192.143.2, 104.192.143.3, ...
Verbindungsaufbau zu bitbucket.org (bitbucket.org)|104.192.143.1|:443... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 200 OK
Länge: 49598 (48K) [application/x-tar-gz]
In »»/home/raphael/ftcommunity-TXT/output/build/.9eed59747bbafc3e9afba0db9f32c4f6efd54beb.tar.gz.0PSlqz/output«« speichern.
/home/raphael/ftcommunity-TXT/output/build/.9eed59 100%[================================================================================================================>] 48,44K --.-KB/s in 0,1s
bzcat /home/raphael/ftcommunity-TXT/dl/boost_1_61_0.tar.bz2 | tar --strip-components=1 -C /home/raphael/ftcommunity-TXT/output/build/boost-1.61.0 -xf -
>>> boost 1.61.0 Patching
Applying 0001-fix-ambiguous-format-call-on-64bit-builds.patch using patch:
patching file libs/locale/src/icu/formatter.cpp
Applying 0002-fix-uclibc-eventfd.patch using patch:
patching file boost/asio/detail/impl/eventfd_select_interrupter.ipp
Applying 0003-fenv.patch using patch:
(cd /home/raphael/ftcommunity-TXT/output/build/python-pygattlib-9eed59747bbafc3e9afba0db9f32c4f6efd54beb//; PATH="/home/raphael/ftcommunity-TXT/output/host/bin:/home/raphael/ftcommunity-TXT/output/host/sbin:/home/raphael/ftcommunity-TXT/output/host/usr/bin:/home/raphael/ftcommunity-TXT/output/host/usr/sbin:/home/raphael/bin:/home/raphael/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" CC="/home/raphael/ftcommunity-TXT/output/host/usr/bin/arm-linux-gnueabihf-gcc" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " LDFLAGS="" LDSHARED="/home/raphael/ftcommunity-TXT/output/host/usr/bin/arm-linux-gnueabihf-gcc -shared" PYTHONPATH="/home/raphael/ftcommunity-TXT/output/target/usr/lib/python3.5/sysconfigdata/:/home/raphael/ftcommunity-TXT/output/target/usr/lib/python3.5/site-packages/" _python_sysroot=/home/raphael/ftcommunity-TXT/output/host/usr/arm-buildroot-linux-gnueabihf/sysroot _python_prefix=/usr _python_exec_prefix=/us
>>> python-pygattlib 9eed59747bbafc3e9afba0db9f32c4f6efd54beb Building
(cd /home/raphael/ftcommunity-TXT/output/build/python-pygattlib-9eed59747bbafc3e9afba0db9f32c4f6efd54beb//; PATH="/home/raphael/ftcommunity-TXT/output/host/bin:/home/raphael/ftcommunity-TXT/output/host/sbin:/home/raphael/ftcommunity-TXT/output/host/usr/bin:/home/raphael/ftcommunity-TXT/output/host/usr/sbin:/home/raphael/bin:/home/raphael/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" CC="/home/raphael/ftcommunity-TXT/output/host/usr/bin/arm-linux-gnueabihf-gcc" CFLAGS="-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os " LDFLAGS="" LDSHARED="/home/raphael/ftcommunity-TXT/output/host/usr/bin/arm-linux-gnueabihf-gcc -shared" PYTHONPATH="/home/raphael/ftcommunity-TXT/output/target/usr/lib/python3.5/sysconfigdata/:/home/raphael/ftcommunity-TXT/output/target/usr/lib/python3.5/site-packages/" _python_sysroot=/home/raphael/ftcommunity-TXT/output/host/usr/arm-buildr
raphael  ~  ftcommunity-TXT  make python-pybluez
>>> python-pybluez 9d20fc2c6b6e3e18175421b5c3c478be37d618cf Downloading
--2017-02-28 13:58:33-- https://github.com/karulis/pybluez/archive//python-pybluez-9d20fc2c6b6e3e18175421b5c3c478be37d618cf.tar.gz
Auflösen des Hostnamen »github.com (github.com)«... 192.30.253.113, 192.30.253.112
Verbindungsaufbau zu github.com (github.com)|192.30.253.113|:443... verbunden.
HTTP-Anforderung gesendet, warte auf Antwort... 302 Found
Platz: https://codeload.github.com/karulis/pybluez/tar.gz/python-pybluez-9d20fc2c6b6e3e18175421b5c3c478be37d618cf [folge]
--2017-02-28 13:58:34-- https://codeload.github.com/karulis/pybluez/tar.gz/python-pybluez-9d20fc2c6b6e3e18175421b5c3c478be37d618cf
Auflösen des Hostnamen »codeload.github.com (codeload.github.com)«... 192.30.253.121, 192.30.253.120
Verbindungsaufbau zu codeload.github.com (codeload.github.com)|192.30.253.121|:443... verbunden.