Giter Site home page Giter Site logo

nodeshot's Introduction

nodeshot's People

Contributors

alfinal avatar bucciarellialessandro avatar cl4u2 avatar claudyus avatar cvalenti avatar dmeehan avatar famicoman avatar gabri94 avatar idemarinis avatar lorenzobracciale avatar mapeveri avatar musicformellons avatar nazza84 avatar nemesifier avatar pablocastellano avatar quocthanhnguyen avatar rageshkrishna avatar sephiroth6 avatar serl avatar sigsalerno avatar stonaz avatar zioproto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nodeshot's Issues

Double links created if both wireless and ethernet interfaces are added

Go to:

http://map.ninux.org/select/nemesisdesignnet/

And you will see that the link toward RDP has a stronger colour. That's cos there are 2 links.
Link to SAR has a strange colour cos there are 2 links: one yellow and one green.

You can verify from the bakcend: http://map.ninux.org/admin/nodeshot/link/ (ctrl+f look for pomezia)

This happened after I added the eth interface to the device RM5PomeziaPellico with ip address 10.40.0.1 as you can see from the advanced tab of the node.

I suppose that if I get rid of the interface the link will stay there cos this other issue:
#10

Any idea?

Yellow links

Anybody figured out why we have those wrong yellow links?

syncdb error

(venv)ninux@ale:~/nodeshot$ python manage.py syncdb
Creating tables ...
Creating table auth_permission
Creating table auth_group_permissions
Creating table auth_group
Creating table auth_user_user_permissions
Creating table auth_user_groups
Creating table auth_user
Creating table django_content_type
Creating table django_session
Creating table django_admin_log
Creating table nodeshot_node
Creating table nodeshot_device
Creating table nodeshot_hnav4
Creating table nodeshot_interface
Creating table nodeshot_link
Creating table nodeshot_userprofile

You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): yes
Traceback (most recent call last):
File "manage.py", line 11, in
execute_manager(settings)
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/core/management/init.py", line 442, in execute_manager
utility.execute()
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/core/management/init.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(_args, *_options.dict)
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(_args, _options)
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/core/management/base.py", line 351, in handle
return self.handle_noargs(
_options)
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/core/management/commands/syncdb.py", line 109, in handle_noargs
emit_post_sync_signal(created_models, verbosity, interactive, db)
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/core/management/sql.py", line 190, in emit_post_sync_signal
interactive=interactive, db=db)
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/dispatch/dispatcher.py", line 172, in send
response = receiver(signal=self, sender=sender, *_named)
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/contrib/auth/management/init.py", line 75, in create_superuser
call_command("createsuperuser", interactive=True)
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/core/management/init.py", line 166, in call_command
return klass.execute(_args, *_defaults)
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(_args, *_options)
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 63, in handle
default_username = get_default_username()
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/contrib/auth/management/init.py", line 107, in get_default_username
default_username = get_system_username()
File "/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/contrib/auth/management/init.py", line 87, in get_system_username
return getpass.getuser().decode(locale.getdefaultlocale()[1])
TypeError: decode() argument 1 must be string, not None

Visitors counter

Put at the very top a visitor counter.
I like something very easy such as:
Visitors XXXX (YY now)
Visitatori XXXX (YY collegati)

Documentation

When I come back, we should write docs and try to simplify the settings.py (maybe splitting in two part, one that people should touch and one that should be touched only by people knowing what they're touching).

@OrazioPirataDelloSpazio

Minor bug on new node adding procedure

Two minor bug in the adding procedure.
At least in the confirmation email, the altitude field is the same of the latitude one. Same thing happens with email3 that is equal to email2.
In my test email3 and altitude are leaved blank, while latitude and email2 are filled.

Feature: Add possibility to track ajax fragments with G. Analytics

Fragments loaded with ajax like node info, advanced, infotab, ecc. should also be tracked by google analytics.
It would be good to add an inclusion to a template fragment that can contain some extra code that can be used for Google Analytics or whatever other statistic system based on js.

Feature: Automatize hna population

Can we automatize HNA pouplation in the database? Can we take the info from OLSR?
How difficult is that?

This is helpful also for DNS integration.

Hna v4/v6

in the frontend we should give more hints to the users like
ENG: HNA v4/v6 (e.g.10.40.1.0/24 or 2001:4c00:893b:beef::/64)
ITA: HNA v4/v6 (ad es. 10.40.1.0/24 o 2001:4c00:893b:beef::/64)

In the data model we should:
-change hnav4 to hna
-parse the input (I can provide reg. exp if needed)

without these patches we could not ask people to fill the db! :-\

At least an Ipv4 or an Ipv6 or a mac address should be required

At the moment it is possible to insert interfaces without any IP address.

This is because otherwise we would not have been able to import data from pisa/mistretta in the new database.

I think the model should have a validation method that requires to fill at least one of the two, returning a validation error if neither have been filled.

Any problem?

Feature: Layar integration

at the moment we have a php script kindly provided by emiliano macedonio that integrates nodeshot with layar, an augmented reality app for smartphones

It would be nice to port the php script to python/django so that we can easily add this feature to our baby!

interface: missing bssid in adhoc mode

In adhoc mode the bssid is more important than essid, if you fix the bssid you can use the essid you what is not necessary that talking nodes have the same

please add a bssid filed at least for adhoc mode ;)

Red links too much visible

on the map red links are too much visible and seems more important that the green ones

a possible solution could be increase the transparency to a value of alpha like 0.3 or 0.2

Contact form does not work on some systems

On Centos + Firefox 8 doesn't work.

Not 100% sure is related with OS and browser, could be related to network settings on single machines. In the second case it would be nice to have a nice error instead of the form just not working and looking broken.

make dbm the default

Make dbm and not etx the default metric for links (as discussed last thursday at fusolab) @nemesisdesign @oraziopiratadellospazio @zioproto

dbm not available!

In "info" tab dbm are never displayed even if in the database. Some problem with the cache/static generator I guess. Please fix

Info Page selection

on click on the name link in the info page i have the yellow evidence of the connected node and the page scroll regulary, but on onmouseover on the evidenced line the yellow evidence disappear.

Show column button fade in/out behaviour bugged on webkit

On webkit based browsers (eg: chrome and safari) the show button reappears also after the column has been shown.

How to reproduce the issue:

  • on a webkit based browser open the map-server and click on "hide this column";
  • then click on "show" without moving the mouse;
  • when the animation is completed move the mouse out of the area in which the button was previously shown;
  • the button should reappear

Proposed solution
when the fade out animation is completed set absolute position to the show button and set the z-index lower than the column so that the column will cover the button and prevent from any interactions with it

Dbm in links

We should remove the attribute dbm from the link class and add:

  • from_dbm # signal received by the "from" node
  • to_dbm # signal received by the "to" node

the we should patch the code accordingly by:

  • modifying snmp.py (lorenzo)
  • modifying the map (I propose to represents on the map the value MAX(from_dbm,to_dbm) because it represents the botteneck of the link
  • modifying the Info tab so that:

Status - Device - Type - IP - Signal
becomes:
Status - Device - Type - IP - Received Signal
and change data accordingly.

Bug in recently interface types added (batman, virtual wifi ecc)

Maximum allowed length is 1 character.

In the beginning it was (name > value):

Ethernet: e
Wifi: w
VPN: v

Then I added:

batman
bridge
virtual-wifi

But of course i couldn't use b 2 times and v again.

Proposed solution: let's increase length limit and call them:

eth
wifi
vpn
batman
bridge
vwifi

And change all the existing ones with an SQL query.

Including Pisa and Mistretta in monitoring

How to change read_topology.py to understand pisa and mistretta links? It need to be fixed or it is just a matter of inserting the right IP address to Pisa/mistretta Nodes?

Edit interface and Edit HNA in frontend are bugged

How to reproduce the issue:

go to edit node, then go to interfaces. Add a new interface, remove it straight away and save. This should give you an internal server error.

I investigated the issue and it seems that the formset jquery plugin is bugged or misconfigured. I believe it's bugged. The regular expression in the JS seems to change stuff that it shouldn't.

Same applies for Edit HNA.

Does not happen for devices.

VPN Link Bug

How come that red VPN link appears on the map?

We should tell the scripts to not insert links in the database if the interfaces are VPN.

I can also tell the view that retrieves the links to exclude VPN interfaces, but if I did that we would have never discovered this.

contact reply-to bugged

Here the email:
contact name: E' uguale al tuo!
contacted email: [email protected]
contact email: [email protected]

-------- Original Message --------
Subject: Richiesta di contatto da E' uguale al tuo! - Ninux.org
Date: Wed, 19 Oct 2011 04:11:50 -0000
From: [email protected]
Reply-To: E'@confino.investici.org, [email protected], [email protected], [email protected]
To: [email protected]

Un utente di "Ninux.org" vuole entrare in contatto con i responsabili del nodo "Orazio(PirataDelloSpazio)".

Nome: E' uguale al tuo!
E-mail: [email protected]

Messaggio:

prova

Quest'email è stata spedita a [email protected]

Info Page selection

If you click on the name link in the info page i have the yellow evidence of the connected node and the page scrolls regulary, but on onmouseover on the evidenced line the yellow evidence disappears.

Bug: ImportError: No module named staticgenerator

(venv)ninux@ale:~/nodeshot/nodeshot/scripts$ DJANGO_SETTINGS_MODULE=settings ./read_olsr_topology.py
/home/ninux/nodeshot/venv/lib/python2.5/site-packages/django/conf/init.py:75: DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
"use STATIC_URL instead.", DeprecationWarning)
Traceback (most recent call last):
File "./read_olsr_topology.py", line 14, in
from nodeshot.models import *
File "/home/ninux/nodeshot/nodeshot/models.py", line 381, in
import signals
File "/home/ninux/nodeshot/nodeshot/signals.py", line 102, in
from staticgenerator import quick_delete
ImportError: No module named staticgenerator

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.