2011-12-21 03:27:59 +01:00
|
|
|
# ___________________________________________________
|
|
|
|
# | |
|
2011-12-26 01:33:05 +01:00
|
|
|
# | vrfc1149 - ip over the virtualized avian carrier |
|
2011-12-21 03:27:59 +01:00
|
|
|
# |___________________________________________________|
|
|
|
|
|
|
|
|
import os
|
2011-12-26 01:33:05 +01:00
|
|
|
from phelper import UPHelper, DPHelper
|
2011-12-21 03:27:59 +01:00
|
|
|
|
|
|
|
Conf = {
|
|
|
|
# ======== network settings ========
|
|
|
|
# ipsettings for the device
|
|
|
|
'devname': '',
|
|
|
|
'network':
|
|
|
|
{
|
2012-01-16 18:28:20 +01:00
|
|
|
'address': '10.10.10.10',
|
2011-12-21 03:27:59 +01:00
|
|
|
'netmask': '255.255.255.0',
|
|
|
|
#gateway: '',
|
|
|
|
'mtu': 1400,
|
|
|
|
},
|
|
|
|
|
2011-12-26 01:33:05 +01:00
|
|
|
# ======== message coding ========
|
|
|
|
# which packaging helper should be used to en-/decode the messages
|
|
|
|
# currently implemented are
|
|
|
|
# UPHelper Encodes 280 chars in one tweet, sometimes breaks
|
|
|
|
# DPHelper Encodes 138 chars in one tweet, more reliable
|
2012-01-16 18:28:20 +01:00
|
|
|
'coder': UPHelper(),
|
2012-01-31 17:14:32 +01:00
|
|
|
|
|
|
|
# use smaller tweets to get arround the random "msg over 140 chars"
|
|
|
|
# error from the twitter API. Currently only used by UPHelper
|
|
|
|
'smallTweets': True,
|
2011-12-26 01:33:05 +01:00
|
|
|
|
2011-12-21 03:27:59 +01:00
|
|
|
# ======== Twitter settings ========
|
|
|
|
'twitter':
|
|
|
|
{
|
|
|
|
# account to read network traffic from
|
2012-01-31 00:24:21 +01:00
|
|
|
'endpoint': None,
|
2011-12-21 03:27:59 +01:00
|
|
|
|
|
|
|
# if set to None, these will be overwritten by config_auth.py
|
|
|
|
# if they are set to none there, this script will give you an
|
|
|
|
# url to authorize this script to twitter and write the
|
|
|
|
# access key / access secret to config_auth.py
|
|
|
|
'ACCESS_KEY': None,
|
|
|
|
'ACCESS_SECRET': None,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
import conf_auth
|