[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-talk] OnionView



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Luke and Nusenu,

what you could also do for updating is include a `If-Modified-Since`
header and check even more frequently than twice per hour.  See the
example below.

Regarding a history view, I recommend against creating an archive of
Onionoo data.  The main reason is that there's no easy way to go back
in time and generate past data.  Another reason is that you'd create
yet another place that keeps state and that requires somebody to pay
attention to.  If you're really interested in creating a history of
relay locations, let's create a new data-aggregating module for
Metrics.  That module would produce a .csv file containing aggregated
statistics on relay locations over time that OnionView could use as
well as other graphs on Metrics.  For example, that file could contain
a snapshot of relay locations once per week since 2007.  However,
that's a medium-sized project, so if you're happy with an OnionView
without history, just enjoy that. :)

All the best,
Karsten


/tmp$ curl -v https://onionoo.torproject.org/summary?limit=0
*   Trying 154.35.132.148...
*   Trying 2607:8500:5:1::e178...
* Immediate connect fail for 2607:8500:5:1::e178: No route to host
* Connected to onionoo.torproject.org (154.35.132.148) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
* Server certificate: *.torproject.org
* Server certificate: DigiCert SHA2 High Assurance Server CA
* Server certificate: DigiCert High Assurance EV Root CA
> GET /summary?limit=0 HTTP/1.1 Host: onionoo.torproject.org 
> User-Agent: curl/7.43.0 Accept: */*
> 
< HTTP/1.1 200 OK
< Date: Sat, 12 Sep 2015 07:41:45 GMT
< Server: Jetty(8.y.z-SNAPSHOT)
< Strict-Transport-Security: max-age=15768000
< Last-Modified: Sat, 12 Sep 2015 07:34:06 GMT
< Access-Control-Allow-Origin: *
< Content-Type: application/json;charset=utf-8
< Cache-Control: public, max-age=2100
< Content-Length: 132
<
{"version":"2.6",
"relays_published":"2015-09-12 07:00:00",
"relays":[
],
"bridges_published":"2015-09-12 06:41:12",
"bridges":[
]}
* Connection #0 to host onionoo.torproject.org left intact
/tmp$ curl -v -H "If-Modified-Since: Sat, 12 Sep 2015 07:34:06 GMT"
https://onionoo.torproject.org/summary?limit=0
*   Trying 154.35.132.148...
* Connected to onionoo.torproject.org (154.35.132.148) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384
* Server certificate: *.torproject.org
* Server certificate: DigiCert SHA2 High Assurance Server CA
* Server certificate: DigiCert High Assurance EV Root CA
> GET /summary?limit=0 HTTP/1.1 Host: onionoo.torproject.org 
> User-Agent: curl/7.43.0 Accept: */* If-Modified-Since: Sat, 12 Sep
> 2015 07:34:06 GMT
> 
< HTTP/1.1 304 Not Modified
< Date: Sat, 12 Sep 2015 07:42:37 GMT
< Server: Jetty(8.y.z-SNAPSHOT)
<
* Connection #0 to host onionoo.torproject.org left intact



On 10/09/15 13:50, Luke Millanta wrote:
> Hi Nusenu,
> 
> Have edited OV so that it updates once an hour with tor... Just
> need to edit the about page (which I am doing now).
> 
> Cheers, Luke
> 
> On Thu, Sep 10, 2015 at 9:20 PM, nusenu <nusenu@xxxxxxxxxxxxxxx>
> wrote:
> 
>> Thanks for starting OnionView.
>> 
>> 
>>> OnionView's relay database is updated every 30 minutes to help
>>> ensure map accuracy.
>> 
>> Does it make sense to update more frequently than the hourly tor
>> consensus?
>> 
>> Will this remain a view of the current network or do you also
>> have plans on a history view?
>> 
>> 
>> 
>> -- tor-talk mailing list - tor-talk@xxxxxxxxxxxxxxxxxxxx To
>> unsubscribe or change other settings go to 
>> https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk
>> 
>> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQEcBAEBAgAGBQJV89opAAoJEJD5dJfVqbCr4s0H/1hSaE8GOnK98XR2nTtqFAMf
5/MBbgWqBsFN9D+NpCSy5TOZLVDTbA8gDcwtl8mWt3OC+dI6yF4mtiDVRj/EpR5c
EXsXiJaLkDAMVIZDgo7fRTkS9tOafLxFbmDKM3ZCC8qN011+GJBVmj5tAIi1aQ41
veBvrYkeZspnuGL6Kdo7Czcms4tv/Rl7pYDNHFS0rP5wd4ZTCdzVp7ePpKyE1aqH
z52zagYJ0Y6vXit9yYm5OZqkMT2WJUAMcbO7jet+C6lPkA35SKKL51zWrP/9OiwC
p8BLVuR8UTWHweTeAOX8V4nszPdjD9FBkIg5ubHTuHKJ4CtAx6nCYno5N19I4GI=
=Ywdo
-----END PGP SIGNATURE-----
-- 
tor-talk mailing list - tor-talk@xxxxxxxxxxxxxxxxxxxx
To unsubscribe or change other settings go to
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk