Web Based Journal api viewer (Beta ) ( basic )

Discussion about the technical aspects of scripting. Ask about all issues involving your freelance projects here.
Locked
lestatzero
Legendary Scribe
Posts: 427
Joined: Sun Mar 18, 2012 7:37 pm

Web Based Journal api viewer (Beta ) ( basic )

Post by lestatzero »

Below is a basic web page that will display your api based journal in a web page and auto refresh fo you... I am looking at further developmenet to filter content further to seperate aeas of a basic web page layout the basic code is below.

Copy and past the code into a text document and save it as journalviewer.html or something like that and place it on your desktop for easy finding.

You will need to obtain your personal api to insert it into the script.

Refresh information can also be changed by editing the Meta Tag to what ever you want it to be.
<META HTTP-EQUIV='refresh' content=10> ( change content=10 to any number of seconds between refresh generally greater than 7 for best usage as it does take a moment for data to pull from api )
Known issues ( auto scroll to end feature ) still buggy and does not see where last line data is when the full page has not been filled with data ( the longe you stay logged in the more lines will be available and then the auto scroll feature works fine )
If we have any html - java tech savy individuals who would like to help further develop this project please drop me a pm on the forums or in game .

Code: Select all

<HTML>
 <HEAD>
 <TITLE>Journal Viewer for Excelsior</TITLE>
<META HTTP-EQUIV='refresh' content=10>
</HEAD>
<script language=JavaScript>
 
function ScrollDown() {
 window.scrollBy(0,1000);
 scrolldelay = setTimeout('pageScroll()',10);
 }
 
window.onload=ScrollDown; 

</script>
 
<div style="height: 1028px;">
 
<iframe src="http://shard.uoex.net:61/api/Journal?Key=INSERT YOUR API KEY HERE WITH DASH INCLUDED" frameborder="0" scrolling="no" marginwidth="0" marginheight="100%" width="100%" height="1028px" style="padding: 0; margin: 0; border: 0;"></iframe>
 
</div>
</html>
Lestat A Zero
Unbeliever
Legendary Scribe
Posts: 287
Joined: Tue Jul 16, 2013 9:08 pm
Location: East Tennessee

Re: Web Based Journal api viewer (Beta ) ( basic )

Post by Unbeliever »

Thanks for sharing this information, Lestat. I'm the guy who asked you about it in world chat yesterday. Without trying to detract from your script, I'd like to mention that I found out it is possible to save the journal to a text file through the UO client itself. This is accomplished by navigating to your UO installation folder for Excelsior, finding the uo.cfg file, and opening it with a text editor like Notepad. Change the "SaveJournal" entry from its default of Off to On. And add in a line called JournalSaveFile= to control the name and save location of the file. If you just place a name after the equal sign like uojournal.txt then it will create and use that file within your UO install folder. Otherwise you can enter a save path first followed by the filename to save it elsewhere on your computer. Save and exit and voila, never worry about missing any journal text ever again. There's an old program called UO Journal Converter available online that you can use with this function to separate the journal logs by date or maximum lines and has many other options, in case you fear reading through or saving what will surely become a huge single text file.
Last edited by Unbeliever on Wed Dec 25, 2013 4:52 pm, edited 1 time in total.
in-game Thomas Covenant
User avatar
Gaara
Legendary Scribe
Posts: 890
Joined: Sun Sep 23, 2012 10:43 pm
Location: Sedona, AZ, USA

Re: Web Based Journal api viewer (Beta ) ( basic )

Post by Gaara »

Unbeliever wrote:Thanks for sharing this information, Lestat. I'm the guy who asked you about it in world chat yesterday. Without trying to detract from your script, I'd like to mention that I found out it is possible to save the journal to a text file through the UO client itself. This is accomplished by navigating to your UO installation folder for Excelsior, finding the uo.cfg file, and opening it with a text editor like Notepad. Change the "SaveJournal" entry from it's default of Off to On. And add in a line called JournalSaveFile= to control the name and save location of the file. If you just place a name after the equal sign like uojournal.txt then it will create and use that file within your UO install folder. Otherwise you can enter a save path first followed by the filename to save it elsewhere on your computer. Save and exit and voila, never worry about missing any journal text ever again. There's an old program called UO Journal Converter available online that you can use with this function to separate the journal logs by date or maximum lines and has many other options, in case you fear reading through or saving what will surely become a huge single text file.
I can't seem to be able edit my uo.cfg file :|
Image
Unbeliever
Legendary Scribe
Posts: 287
Joined: Tue Jul 16, 2013 9:08 pm
Location: East Tennessee

Re: Web Based Journal api viewer (Beta ) ( basic )

Post by Unbeliever »

Gaara wrote:I can't seem to be able edit my uo.cfg file :|
PM me here or in-game; I'd be happy to help.
in-game Thomas Covenant
lestatzero
Legendary Scribe
Posts: 427
Joined: Sun Mar 18, 2012 7:37 pm

Re: Web Based Journal api viewer (Beta ) ( basic )

Post by lestatzero »

Unbeliever wrote:Thanks for sharing this information, Lestat. I'm the guy who asked you about it in world chat yesterday. Without trying to detract from your script, I'd like to mention that I found out it is possible to save the journal to a text file through the UO client itself. This is accomplished by navigating to your UO installation folder for Excelsior, finding the uo.cfg file, and opening it with a text editor like Notepad. Change the "SaveJournal" entry from its default of Off to On. And add in a line called JournalSaveFile= to control the name and save location of the file. If you just place a name after the equal sign like uojournal.txt then it will create and use that file within your UO install folder. Otherwise you can enter a save path first followed by the filename to save it elsewhere on your computer. Save and exit and voila, never worry about missing any journal text ever again. There's an old program called UO Journal Converter available online that you can use with this function to separate the journal logs by date or maximum lines and has many other options, in case you fear reading through or saving what will surely become a huge single text file.

yes i understand this but you cannot read that file and save that file at the same time when the client is running ... you would have to copy the current file to a temp location to read it using the api functions adds several features and sorting ability that will be able to be used and allows it to be updated regularly via an external source ... you can put this html file on a website and password protect the directory and then view it when your not at home as an example ... I already did this for myself so i can view my journal on my iphone and see what s up that way without loading the whole portal site which takes a bit longer to load on my phone .. this works wonders for things like that... again it also has some built in things to distinguish different line items which are not thee in the text file you decode from the client its self ..

Lestat
Unbeliever
Legendary Scribe
Posts: 287
Joined: Tue Jul 16, 2013 9:08 pm
Location: East Tennessee

Re: Web Based Journal api viewer (Beta ) ( basic )

Post by Unbeliever »

To be honest, most of the features you're describing are probably over my head and undoubtedly make it superior to the uo.cfg option. I hope many players make use of your hard work.

That said, you actually can view the journal while the game is running and, if desired, save it under a new filename. Then select all lines of text, delete, save over the existing file, and let it continue running. I know because I tried it. I tried it because the UO Journal Converter I mentioned in my first post only works if you use it to launch UO, which I have no intention of doing. So I needed a way to separate journal logs by date myself.
in-game Thomas Covenant
User avatar
Gaara
Legendary Scribe
Posts: 890
Joined: Sun Sep 23, 2012 10:43 pm
Location: Sedona, AZ, USA

Re: Web Based Journal api viewer (Beta ) ( basic )

Post by Gaara »

Unbeliever wrote:To be honest, most of the features you're describing are probably over my head and undoubtedly make it superior to the uo.cfg option. I hope many players make use of your hard work.

That said, you actually can view the journal while the game is running and, if desired, save it under a new filename. Then select all lines of text, delete, save over the existing file, and let it continue running. I know because I tried it. I tried it because the UO Journal Converter I mentioned in my first post only works if you use it to launch UO, which I have no intention of doing. So I needed a way to separate journal logs by date myself.
i myself used this so far to save some tips i got from +C :P
Image
Locked