Cities: Skylines

Cities: Skylines

City Web Server
96 Comments
toast May 30, 2023 @ 4:30pm 
Anyone have an update version of this?
Rena Mar 29, 2019 @ 11:49am 
It works, but the only items in the navbar are Home and Log. Clicking the city name shows more pages, but they just show raw JSON.

Also how do I go about adding more pages? Are there HTML files somewhere I can edit?
xpala May 1, 2018 @ 3:35pm 
would love an update from this mod with more infoscreens
Angelino Feb 2, 2018 @ 3:22am 
Where are the "Mister Slurp's UI" in this MOD? I re-installed Cities Skylines and Mister Slurp's U is gone :(
iM4g3Ry Dec 19, 2017 @ 11:13pm 
just made it work, fairly effortlessly; fyi, you guys, hold [Control] + Mouse Drag = moves the world icon
iM4g3Ry Dec 19, 2017 @ 11:00pm 
This is a breathtaking idea, after looking for more than an hour for some mod that would do just this... #RIP- Rush Hour, but I still use it and I can't see any data since it's maybe been a month instead of like, 2-3 years...

tl;dr -- could you make this accessible in game some how? the main thing I'm interested in is the update interval. It goes between Years (by default). Could it easily be done? I'm willing to be shown how. I have some solid experience with C++ but no C# :steamfacepalm: I'll send a request to communicate about it possibly tomorrow, so I don't interfere with your Rocket League match :orochi:
Galameth Dec 10, 2017 @ 2:23am 
Also running into charts not displaying. I get basic city info in data tables, but no charts through Chrome.
eddymurphy@3080Ti ♥ StDeck Aug 30, 2017 @ 9:01am 
For me it works fine but the Button is in the middle of the screen.
Modern Pyro Aug 13, 2017 @ 2:14pm 
Has anyone been able to port the city statistic to an editable table? I'm interested in using city growth data for research. I appreciate any help.
Junelicious May 23, 2017 @ 11:41am 
The description might need a little tweak.
Closing the game overwrites the setting file (at least it did in my case and it took me 3 reloads to properly do it) and game needs to be closed before the edit.

Also, maybe there should be an option to make viewing stats on an iPad/other tablet accessible for people without the knowledge of how config files work :)
Dyanne Nov 7, 2016 @ 8:14am 
This mod is either broken or incompatible with certain mods.
Antoni Macierewicz Apr 8, 2016 @ 10:25am 
FiRe Apr 2, 2016 @ 1:07am 
This is currently broken for me since the latest update, and just shows "Cities: Skylines - Integrated Web Server" on localhost:8080
CreatorOfWorlds Mar 27, 2016 @ 3:45am 
Hi. If its possible, I would be grateful if anyone would make a short description for how i can collect data from the server with Excel. I have Excel 2016 and power query and so on.
Rychard  [author] Feb 15, 2016 @ 7:22am 
@keremozan The website uses javascript to make API calls. As a result, you can make the API calls directly and store the responses however you prefer. The server itself is extensible, allowing you to add your own API endpoints without much effort. There's a link to the code on Github at the end of the description above, which may prove useful. If you have any technical questions, just let me know and I'll do what I can to answer them.
keremozan Feb 15, 2016 @ 6:19am 
Thank you for this mod! Is it possible to export the stats in some way to tables data to make some infographics in another tools.
Jens Feb 9, 2016 @ 12:16pm 
I can only get this to show the population page, none of the other pages shows up
Antoni Macierewicz Feb 2, 2016 @ 9:34am 
Well, previously I used original files, but when I downloaded ModSettings.json, it's working! Thanks man a lot.
Rychard  [author] Feb 2, 2016 @ 8:12am 
Are you using the ModSettings.json file from here: https://gist.github.com/Rychard/d9c608880a779d8e4165 ? The default configuration prevents access from external devices as a security precaution.
Antoni Macierewicz Feb 1, 2016 @ 3:55am 
@Rychard: I opened port 8080 (UDP and TCP) on firewall. All my devices are connected to my home network. But, when I try to connect by myipadress:port, my internet browser gets an error like "Bad Request (Invalid host)" Also, i tried it on my old laptop, with the same effect
Rychard  [author] Jan 31, 2016 @ 10:07am 
@Antoni Macierewicz: You'll need to open the port on your firewall (default is 8080) to allow incoming connections. Also, make sure that both devices are connected to the same network. Finally, get the IP address of the computer running the server, open a browser on your tablet or smartphone, and go to http://myipaddress:port/
Antoni Macierewicz Jan 29, 2016 @ 6:24pm 
Is it possible to use it on smartphone/tablet? This mod is so nice, but i would like to play C:S and see this City Web Server on tablet, but I can't connect into it, i tried everything, can u help me? Sorry for my english.
R3voluz3r Sep 30, 2015 @ 9:46am 
@Rychard it is also not working here. I also dont se charts. Please fix this :/
MysticDaedra Sep 27, 2015 @ 7:20pm 
I tested it and it does seem to work. @Rychard make sure you click the button in-game.
sCyborg Sep 27, 2015 @ 6:31pm 
@Rychard it doesn't seem to be working it gives me the main page but no numbers or charts are appearing seems like a great tool though :D
Rychard  [author] Sep 26, 2015 @ 11:37pm 
@tofuturkey: I haven't noticed any issues as of the latest patch, but on the off-chance you find something, post a message and I'll look into it.
MysticDaedra Sep 24, 2015 @ 2:04pm 
Does this work with After Dark? Is the mod still being maintained?
Bruizer Jul 9, 2015 @ 10:26am 
Does anybody know if this mod plays well with the game update released on July 1? I am having a heck of a time figuring out which of the mods I have installed is not compatible with the updated game... if anyone out there knows the status of this mod and if it works with the latest update I would love to hear. Thanks!
Bruizer Jul 1, 2015 @ 2:50pm 
Is this mod compatible with the game update released 1 July 2015?
Termite Jun 2, 2015 @ 11:47am 
Has the update broken Mr Slurps extension? I can't seem to get that to work now.
Rychard  [author] Jun 1, 2015 @ 9:38pm 
And one more update because I accidentally removed the screenshot image.
Rychard  [author] Jun 1, 2015 @ 9:35pm 
Just pushed an update with what I hope is the fix.

Let me know if you guys are still having issues.
scrublord 2014 Jun 1, 2015 @ 7:36pm 
This mod is broken as of right now.
gringodingo May 31, 2015 @ 12:47pm 
Thank You, this is amazing ( I sound like the previous post but it is so true) Imagine if real cities could have this sort of real-time online information:)
jack23011 May 16, 2015 @ 12:27pm 
Thanks, amazing. Look forward to future updates and adds. Works great on dual monitor and not experiencing any frame rate hits with this mod and CIM on ultrta.
idealcastle May 13, 2015 @ 9:53am 
Great idea. but after installing this mod, it slows down the game significantly.
Gotteshaus May 9, 2015 @ 6:23am 
OMG, you are insane. Cheers!
Colonel Failure May 7, 2015 @ 2:01am 
I've put up a very top-level mod spotlight on City Web Server here, https://www.youtube.com/watch?v=EWtxjLE7qPQ
Mr Slurp Apr 16, 2015 @ 1:51pm 
Hi Rychard & All
Since my last exchange with Rychard I started a complete rework of my views, built as a plugin of Rychard's mod (It mean my mod will be distributable through workshop and will require Rychard's mod).

The City View is nearly finished, and soon I will work on Districts view which will reuse most of City view elements, so it should not be too long.

Once the District view done, I'll try to publish a first version on the workshop.

Here is what it look like now :
http://tof.canardpc.com/view/f8b5bcd9-1088-4ad7-8608-3ca8594a8931.jpg
Dr. Frostbite Apr 9, 2015 @ 10:24am 
@Rychard, thank you for clearing that up. I feel stupid now.. :P Again, thanks for this awesome tool!
Rychard  [author] Apr 7, 2015 @ 5:49pm 
@Dr. Frostbite, in the description there are some instructions for opening up the server to allow non-local clients (such as devices on the LAN, and even the internet if you desire, though I'd advise against it). By default I wanted to keep things secure since I didn't want to put anyone's machine at risk (however minimal that risk may be).
Dr. Frostbite Apr 7, 2015 @ 11:33am 
Love this! Just wish I could access it from another device on my local network. Right now it's responding with "Bad Request(Invalid Host)". Lovely mod, nonetheless! :D
Zefnoly Apr 7, 2015 @ 8:29am 
Thanks! Just what I need. doing dualscreen so this fits perfect. can open the ports to do a live website about my city lol
Rychard  [author] Apr 6, 2015 @ 8:11pm 
@timothymarois The instructions are pretty clear on how you can move that icon around and place it wherever you want it. It used to be in the top-left corner of the screen but evidently it interfered with other mods, so I defaulted it to the center of the screen and made it movable.
Nosh2O Apr 6, 2015 @ 6:17pm 
Thanks for your continued work on this mod. I can't seem to play without the info it provides. Thank you.
idealcastle Apr 6, 2015 @ 8:17am 
The icon for me is in the center of the screen. Kind of annoying.
Rychard  [author] Apr 5, 2015 @ 8:15am 
In the previous post, I mentioned some modifications to the ModSettings.json file. You can see an example of such changes by looking at this Gist: https://gist.github.com/Rychard/d9c608880a779d8e4165
Rychard  [author] Apr 5, 2015 @ 8:13am 
I've just published an update that removes the configurable port binding and replaces it with the ability to configure the binding addresses. There are a few "gotchas" with this, though:

1. You can specify multiple bindings. Simply add another JSON element to the ModSettings.json file. Make sure to increment the number by 1 for every additional binding. (Make sure you include a comma to separate the elements, but don't place one at the end!)

2. The numbers for multiple bindings must be sequential. (1, 2, 3, etc).

3. You can create a global binding by setting a value of " http://*:8080/" but this must NOT be the first binding, or else the button in-game will no longer launch the website correctly. (Note that you can still access it by entering an appropriate URL)

4. Internally, the mod will use the first binding, so it's suggested to keep this set to something like localhost (or an IP address).
Rychard  [author] Apr 5, 2015 @ 7:58am 
@Swornstar Sort of. Rather than forcing everyone into the same design, I'm working on pulling it out. Since I wrote the code to be extensible from the get-go, other developers can already add functionality to the server. The plan is to split the "server" part and the "website" part into separate mods. That way, @[CPC] Mr Slurp can publish his work (which is wonderful, by the way) as his own mod. Users would simply install the server mod, and then any other mod that provides a dashboard. (Ideally, multiple ones that provide different pieces of data!)
Rychard  [author] Apr 4, 2015 @ 3:32pm 
@tskunka Right now the server is bound specifically to localhost, which is the underlying reason why it can't be connected to remotely. The decision was made just to keep things "safe" but after seeing all the messages to the contrary, I guess I'll just allow it. I suppose you can expect this in the next release.