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':
|
|
|
|
{
|
2011-12-26 01:33:05 +01:00
|
|
|
'address': '10.10.10.11',
|
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
|
|
|
|
'coder': DPHelper(),
|
|
|
|
|
2011-12-21 03:27:59 +01:00
|
|
|
# ======== Twitter settings ========
|
|
|
|
'twitter':
|
|
|
|
{
|
|
|
|
# account to read network traffic from
|
2011-12-26 01:33:05 +01:00
|
|
|
'endpoint': "tw2tw2tw2",
|
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
|