libremap / libremap-agent-openwrt Goto Github PK
View Code? Open in Web Editor NEWLibreMap submission agent for openwrt
License: Apache License 2.0
LibreMap submission agent for openwrt
License: Apache License 2.0
Hi,
libremap-agent fails to run on recent compilations of the package:
root@openwrt:~# /usr/sbin/libremap-agent
/usr/bin/lua: module 'luci.fs' not found:
no field package.preload['luci.fs']
no file './luci/fs.lua'
no file '/usr/share/lua/luci/fs.lua'
no file '/usr/share/lua/luci/fs/init.lua'
no file '/usr/lib/lua/luci/fs.lua'
no file '/usr/lib/lua/luci/fs/init.lua'
no file './luci/fs.so'
no file '/usr/lib/lua/luci/fs.so'
no file '/usr/lib/lua/loadall.so'
no file './luci.so'
no file '/usr/lib/lua/luci.so'
no file '/usr/lib/lua/loadall.so'
stack traceback:
[C]: in function 'require'
?: in main chunk
[C]: in function 'require'
/usr/sbin/libremap-agent:4: in main chunk
[C]: ?
The file was dropped from LuCI on the 15th January 2015 (openwrt/luci@e91b603).
Maybe it could be added to libremap-agent package.
the libremap.berlin.freifunk.net doesnt exists atm.
i was asking them via twitter.
https://mobile.twitter.com/freifunk_l/status/737988625510637568
The document that is already present in the db (if there is one) can contain vital information. For example, it's possible that the location is not stored in the router itself so a plugin could simply copy the location from the existing data.
I've to recheck this, but i remember, that the openwrt gets a host-dependency to luac when the agent is build in openwrt.
luasrc/Makefile uses luac; not sure how openwrt should check those calls.
Links between qMp nodes are not shown in Libremap (see for instancehttp://libremap.net/#bbox/41.32381345581024,2.0822417736053467,41.33096789744496,2.097691297531128). In this area, nodes http://libremap.net/api/router/43606c1dda7bb9f887b3b624c0189927 and http://libremap.net/api/router/bfae24c7abc7f08144fb146717b2700d are linked but the map does not show so.
I've seen that if I force MAC addresses to be published in uppercase (see nodes in area http://libremap.net/#bbox/41.37529501839182,2.161785364151001,41.38244380449015,2.1772348880767822) links magically appear on the map. I guess that libremap-agent should consistently publish all MAC addresses either in uppercase or lowercase, but also libremap api should treat MAC addresses as case insensitive strings.
Thanks!
Using the system plugin (system.lua) returns the following error:
Mon Mar 6 13:49:01 2017 user.warn libremap-agent[3881]: unable to execute plugin "system"; /usr/lib/lua/luci/libremap/plugins/system.lua:18: attempt to call field 'sysinfo' (a nil value)
Using the wireless plugin (wireless.lua) returns the following error:
Mon Mar 6 12:34:51 2017 user.warn libremap-agent[15318]: unable to execute plugin "wireless"; /usr/lib/lua/luci/libremap/plugins/wireless.lua:55: attempt to index field 'iwdata' (a nil value)
it is outdated and no longer used as far as I can tell...
The plugin should provide aliases and links.
Pull in the code from https://github.com/freifunk/packages-pberg/tree/master/utils/luci-app-owm and start to break it into plugins.
something like:
libremap.net/#community/quintanalibre.org.ar
so a community can use that link to show "their" map (using the existing filter).
The view should also auto-zoom to the area containing the community nodes.
When running "libremap-agent" on recent OpenWrt-based devices (e.g. Chaos Calmer 15.05.1), the following warning is logged:
Thu Sep 1 14:59:25 2016 user.warn libremap-agent[23499]: unable to execute plugin "system"; ?:0: attempt to call field 'sysinfo' (a nil value)
Thu Sep 1 14:59:26 2016 user.info libremap-agent[23499]: success: submitted to http://libremap.net/api/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.