@@ -4,6 +4,16 @@ Background information and general remark
Cassandra_ is the current (2018) archiving solution used at KARA. There is a `JavaScript-Object-Notation`_-API available, that can be accessed from within the IBPT-LAN (CN, VPN or las-bernhard.anka.kit.edu).
Usage with different hosts or ports
-----------------------------------
In case you want to run this scripts or library from a place where the host or port does not fit the presets, you need to provide them as environment variables.
For example if you want to run your script ``cassandra_download.py`` and you forwarded ``ankacomm`` via SSH to the port 9999,
Typical causes for the URLError with the message `Maybe you're not inside the ANKA-LAN` are
* You are not inside the IBPT office network nor in it via VPN. You should check this by getting the following URL.
http://ankasr-archiver.anka.kit.edu:9812/archive-access/api/1.0/archive/1/samples/A:SR:BeamInfo:01:Energy?start=1479813320000000000&end=1479813420000000000 Try to do it with wget or curl, because maybe you are working on a different computer than you think ;)
* One of your provided ``PV`` names is wrong
* Your start time is later that your end time
* The cassandra archive is not responding correctly. Did you really double checked the other causes? Then get in contact with Sebastian Marsching or write a JIRA ticket.